aboutsummaryrefslogtreecommitdiff
path: root/files/ja
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja')
-rw-r--r--files/ja/web/api/shadowroot/pictureinpictureelement/index.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/files/ja/web/api/shadowroot/pictureinpictureelement/index.md b/files/ja/web/api/shadowroot/pictureinpictureelement/index.md
new file mode 100644
index 0000000000..cdcf4b19cc
--- /dev/null
+++ b/files/ja/web/api/shadowroot/pictureinpictureelement/index.md
@@ -0,0 +1,45 @@
+---
+title: ShadowRoot.pictureInPictureElement
+slug: Web/API/ShadowRoot/pictureInPictureElement
+tags:
+ - API
+ - プロパティ
+ - リファレンス
+ - ShadowRoot
+ - ウェブコンポーネント
+ - シャドウ DOM
+browser-compat: api.ShadowRoot.pictureInPictureElement
+---
+{{APIRef("Shadow DOM")}}
+
+**`pictureInPictureElement`** は {{domxref("ShadowRoot")}} インターフェイスの読み取り専用プロパティで、このシャドウツリー内で現在、ピクチャインピクチャモードで表示されている要素 ({{domxref("Element")}}) を返します。現在、ピクチャインピクチャモードが使用されていない場合は `null` を返します。
+
+## 構文
+
+```js
+shadowRoot.pictureInPictureElement
+```
+
+### 値
+
+現在ピクチャインピクチャモードになっている {{domxref("Element")}} オブジェクトへの参照、またはピクチャインピクチャモードが現在シャドウツリーで使われていない場合は `null` が返されます。
+
+## 例
+
+```js
+let customElem = document.querySelector('my-shadow-dom-element');
+let shadow = customElem.shadowRoot;
+let pipElem = shadow.pictureInPictureElement;
+```
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}
+
+## 関連情報
+
+- {{domxref("Document.pictureInPictureElement")}}