Skip to content

Commit

Permalink
fix sidebar of picture-in-picture api (#30110)
Browse files Browse the repository at this point in the history
style update
  • Loading branch information
skyclouds2001 authored Nov 8, 2023
1 parent 4c62c3b commit 4cbb657
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/api/document/exitpictureinpicture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ page-type: web-api-instance-method
browser-compat: api.Document.exitPictureInPicture
---

{{ApiRef("Picture-in-Picture API")}}
{{APIRef("Picture-in-Picture API")}}

The {{domxref("Document")}} method
**`exitPictureInPicture()`** requests that a video contained
The **`exitPictureInPicture()`** method of the {{domxref("Document")}} interface
requests that a video contained
in this document, which is currently floating, be taken out of picture-in-picture
mode, restoring the previous state of the screen. This usually reverses the
effects of a previous call to {{domxref("HTMLVideoElement.requestPictureInPicture()")}}.
Expand Down
7 changes: 3 additions & 4 deletions files/en-us/web/api/document/pictureinpictureelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ page-type: web-api-instance-property
browser-compat: api.Document.pictureInPictureElement
---

{{ApiRef("Fullscreen API")}}
{{APIRef("Picture-in-Picture API")}}

The
**`Document.pictureInPictureElement`** read-only
property returns the {{ domxref("Element") }} that is currently being
The read-only **`pictureInPictureElement`** property of the {{domxref("Document")}}
interface returns the {{ domxref("Element") }} that is currently being
presented in picture-in-picture mode in this document, or `null` if
picture-in-picture mode is not currently in use.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.HTMLVideoElement.disablePictureInPicture
---

{{APIRef("HTML DOM")}}
{{APIRef("Picture-in-Picture API")}}

The {{domxref("HTMLVideoElement")}} **`disablePictureInPicture`** property reflects the HTML attribute indicating whether the picture-in-picture feature is disabled for the current element.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.HTMLVideoElement.enterpictureinpicture_event
---

{{APIRef("HTMLVideoElement")}}
{{APIRef("Picture-in-Picture API")}}

The `enterpictureinpicture` event is fired when the {{DOMxRef("HTMLVideoElement")}} enters picture-in-picture mode successfully.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.HTMLVideoElement.leavepictureinpicture_event
---

{{APIRef("HTMLVideoElement")}}
{{APIRef("Picture-in-Picture API")}}

The `leavepictureinpicture` event is fired when the {{DOMxRef("HTMLVideoElement")}} leaves picture-in-picture mode successfully.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.HTMLVideoElement.requestPictureInPicture
---

{{ APIRef("HTML DOM") }}
{{APIRef("Picture-in-Picture API")}}

The **{{domxref("HTMLVideoElement")}}** method
**`requestPictureInPicture()`** issues an asynchronous request
Expand Down

0 comments on commit 4cbb657

Please sign in to comment.