-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split pictureInPictureElement to avoid mixin page (#2653)
* yarn content move Web/API/DocumentOrShadowRoot/pictureInPictureElement Web/API/Document/pictureInPictureElement * Update document.pictureInPictureElement * Add propety to document interface page * Fix various links * Add property to ShadowRoot page * Change HTMLVideoElement to Element (as per spec) * Add new page for ShadowRoot.pictureInPictureElement * copy edit * Address feedback * Manually update wrong redirect Co-authored-by: Chris Mills <cmills@mozilla.com>
- Loading branch information
1 parent
ec35fbd
commit 69b0fa8
Showing
11 changed files
with
104 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
files/en-us/web/api/shadowroot/pictureinpictureelement/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: ShadowRoot.pictureInPictureElement | ||
slug: Web/API/ShadowRoot/pictureInPictureElement | ||
tags: | ||
- API | ||
- Property | ||
- Reference | ||
- ShadowRoot | ||
- Web Components | ||
- shadow dom | ||
--- | ||
<div>{{APIRef("Shadow DOM")}}</div> | ||
|
||
<p>The <strong><code>pictureInPictureElement</code></strong> read-only property of the | ||
{{domxref("ShadowRoot")}} interface returns the {{domxref("Element")}} that is currently being | ||
presented in picture-in-picture mode in this shadow tree, or <code>null</code> if | ||
picture-in-picture mode is not currently in use.</p> | ||
|
||
<h2 id="Syntax">Syntax</h2> | ||
|
||
<pre class="brush: js"><var>shadowRoot</var>.pictureInPictureElement</pre> | ||
|
||
<h3 id="Value">Value</h3> | ||
|
||
<p>A reference to the {{domxref("Element")}} object that's currently in | ||
picture-in-picture mode, or, if picture-in-picture mode isn't currently in use by the | ||
shadow tree, the returned value is <code>null</code>.</p> | ||
|
||
<h2 id="Examples">Examples</h2> | ||
|
||
<pre class="brush: js">let customElem = document.querySelector('my-shadow-dom-element'); | ||
let shadow = customElem.shadowRoot; | ||
let pipElem = shadow.pictureInPictureElement;</pre> | ||
|
||
<h2 id="Specifications">Specifications</h2> | ||
|
||
<table class="standard-table"> | ||
<thead> | ||
<tr> | ||
<th scope="col">Specification</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{SpecName('Picture-in-Picture','#dom-documentorshadowroot-pictureinpictureelement', 'pictureInPictureElement')}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<h2 id="Browser_compatibility">Browser compatibility</h2> | ||
|
||
<p>{{Compat("api.ShadowRoot.pictureInPictureElement")}}</p> | ||
|
||
<h2>See also</h2> | ||
|
||
<ul> | ||
<li>{{domxref("Document.pictureInPictureElement")}}</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters