Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize with BCD v5.5.34 #34257

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ _This interface also inherits from the {{DOMxRef("Node")}} and {{DOMxRef("EventT
- : Allows a document loaded in a third-party context (i.e. embedded in an {{htmlelement("iframe")}}) to request access to unpartitioned cookies, in cases where user agents by default block access to unpartitioned cookies by sites loaded in a third-party context to improve privacy.
- {{DOMxRef("Document.requestStorageAccessFor()")}} {{experimental_inline}}
- : Allows top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same [related website set](/en-US/docs/Web/API/Storage_Access_API/Related_website_sets).
- {{domxref("Document.startViewTransition()")}} {{Experimental_Inline}}
- {{domxref("Document.startViewTransition()")}}
- : Starts a new {{domxref("View Transitions API", "view transition", "", "nocode")}} and returns a {{domxref("ViewTransition")}} object to represent it.

The `Document` interface is extended with the {{DOMxRef("XPathEvaluator")}} interface:
Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/document/startviewtransition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "Document: startViewTransition() method"
short-title: startViewTransition()
slug: Web/API/Document/startViewTransition
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.Document.startViewTransition
---

{{APIRef("View Transitions API")}}{{SeeCompatTable}}
{{APIRef("View Transitions API")}}

The **`startViewTransition()`** method of the {{domxref("Document")}} interface starts a new view transition and returns a {{domxref("ViewTransition")}} object to represent it.

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/element/gethtml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "Element: getHTML() method"
short-title: getHTML()
slug: Web/API/Element/getHTML
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.Element.getHTML
---

{{APIRef("DOM")}}{{SeeCompatTable}}
{{APIRef("DOM")}}

The **`getHTML()`** method of the {{domxref("Element")}} interface is used to serialize an element's DOM to an HTML string.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/geolocationcoordinates/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ _The `GeolocationCoordinates` interface doesn't inherit any properties._

_The `GeolocationCoordinates` interface doesn't inherit any methods._

- {{domxref("GeolocationCoordinates.toJSON()")}} {{experimental_inline}}
- {{domxref("GeolocationCoordinates.toJSON()")}}
- : Returns a JSON representation of the `GeolocationCoordinates` object and enables serialization with {{jsxref("JSON.stringify()")}}.

## Specifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "GeolocationCoordinates: toJSON() method"
short-title: toJSON()
slug: Web/API/GeolocationCoordinates/toJSON
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.GeolocationCoordinates.toJSON
---

{{APIRef("Geolocation API")}}{{SeeCompatTable}}
{{APIRef("Geolocation API")}}

The **`toJSON()`** method of the {{domxref("GeolocationCoordinates")}} interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("GeolocationCoordinates")}} object.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/geolocationposition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _The `GeolocationPosition` interface doesn't inherit any properties._

_The `GeolocationPosition` interface doesn't inherit any methods._

- {{domxref("GeolocationPosition.toJSON()")}} {{experimental_inline}}
- {{domxref("GeolocationPosition.toJSON()")}}
- : Returns a JSON representation of the `GeolocationPosition` object and enables serialization with {{jsxref("JSON.stringify()")}}.

## Specifications
Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/geolocationposition/tojson/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "GeolocationPosition: toJSON() method"
short-title: toJSON()
slug: Web/API/GeolocationPosition/toJSON
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.GeolocationPosition.toJSON
---

{{APIRef("Geolocation API")}}{{SeeCompatTable}}
{{APIRef("Geolocation API")}}

The **`toJSON()`** method of the {{domxref("GeolocationPosition")}} interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("GeolocationPosition")}} object.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmltemplateelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ _This interface inherits the properties of {{domxref("HTMLElement")}}._
- : A boolean that reflects the value of the [`shadowrootdelegatesfocus`](/en-US/docs/Web/HTML/Element/template#shadowrootdelegatesfocus) attribute of the associated `<template>` element.
- {{domxref("HTMLTemplateElement.shadowRootClonable", "shadowRootClonable")}}
- : A boolean that reflects the value of the [`shadowrootclonable`](/en-US/docs/Web/HTML/Element/template#shadowrootclonable) attribute of the associated `<template>` element.
- {{domxref("HTMLTemplateElement.shadowRootSerializable", "shadowRootSerializable")}} {{experimental_inline}}
- {{domxref("HTMLTemplateElement.shadowRootSerializable", "shadowRootSerializable")}}
- : A boolean that reflects the value of the [`shadowrootserializable`](/en-US/docs/Web/HTML/Element/template#shadowrootserializable) attribute of the associated `<template>` element.

## Instance methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "HTMLTemplateElement: shadowRootSerializable property"
short-title: content
slug: Web/API/HTMLTemplateElement/shadowRootSerializable
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.HTMLTemplateElement.shadowRootSerializable
---

{{APIRef("Web Components")}}{{SeeCompatTable}}
{{APIRef("Web Components")}}

The **`shadowRootSerializable`** property reflects the value of the [`shadowrootserializable`](/en-US/docs/Web/HTML/Element/template#shadowrootserializable) attribute of the associated [`<template>`](/en-US/docs/Web/HTML/Element/template) element.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "MediaSource: canConstructInDedicatedWorker static property"
short-title: canConstructInDedicatedWorker
slug: Web/API/MediaSource/canConstructInDedicatedWorker_static
page-type: web-api-static-property
status:
- experimental
browser-compat: api.MediaSource.canConstructInDedicatedWorker_static
---

{{APIRef("Media Source Extensions")}}{{SeeCompatTable}}
{{APIRef("Media Source Extensions")}}

The **`canConstructInDedicatedWorker`** static property of the {{domxref("MediaSource")}} interface returns `true` if `MediaSource` worker support is implemented, providing a low-latency feature detection mechanism.

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/mediasource/handle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "MediaSource: handle property"
short-title: handle
slug: Web/API/MediaSource/handle
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.MediaSource.handle
---

{{APIRef("Media Source Extensions")}}{{SeeCompatTable}} {{AvailableInWorkers}}
{{APIRef("Media Source Extensions")}} {{AvailableInWorkers}}

The **`handle`** read-only property of the {{domxref("MediaSource")}} interface returns a {{domxref("MediaSourceHandle")}} object, a proxy for the `MediaSource` that can be transferred from a dedicated worker back to the main thread and attached to a media element via its {{domxref("HTMLMediaElement.srcObject")}} property.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/mediasource/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The **`MediaSource`** interface of the {{domxref("Media Source Extensions API",
- : Returns a {{domxref("SourceBufferList")}} object containing a subset of the {{domxref("SourceBuffer")}} objects contained within {{domxref("MediaSource.sourceBuffers")}} — the list of objects providing the selected video track, enabled audio tracks, and shown/hidden text tracks.
- {{domxref("MediaSource.duration")}}
- : Gets and sets the duration of the current media being presented.
- {{domxref("MediaSource.handle")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("MediaSource.handle")}} {{ReadOnlyInline}}
- : Inside a dedicated worker, returns a {{domxref("MediaSourceHandle")}} object, a proxy for the `MediaSource` that can be transferred from the worker back to the main thread and attached to a media element via its {{domxref("HTMLMediaElement.srcObject")}} property.
- {{domxref("MediaSource.readyState")}} {{ReadOnlyInline}}
- : Returns an enum representing the state of the current `MediaSource`, whether it is not currently attached to a media element (`closed`), attached and ready to receive {{domxref("SourceBuffer")}} objects (`open`), or attached but the stream has been ended via {{domxref("MediaSource.endOfStream()")}} (`ended`.)
Expand All @@ -31,7 +31,7 @@ The **`MediaSource`** interface of the {{domxref("Media Source Extensions API",

## Static properties

- {{domxref("MediaSource.canConstructInDedicatedWorker_static", "MediaSource.canConstructInDedicatedWorker")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("MediaSource.canConstructInDedicatedWorker_static", "MediaSource.canConstructInDedicatedWorker")}} {{ReadOnlyInline}}
- : A boolean; returns `true` if `MediaSource` worker support is implemented, providing a low-latency feature detection mechanism.

## Instance methods
Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/mediasourcehandle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
title: MediaSourceHandle
slug: Web/API/MediaSourceHandle
page-type: web-api-interface
status:
- experimental
browser-compat: api.MediaSourceHandle
---

{{APIRef("Media Source Extensions")}}{{SeeCompatTable}} {{AvailableInWorkers}}
{{APIRef("Media Source Extensions")}} {{AvailableInWorkers}}

The **`MediaSourceHandle`** interface of the {{domxref("Media Source Extensions API", "Media Source Extensions API", "", "nocode")}} is a proxy for a {{domxref("MediaSource")}} that can be transferred from a dedicated worker back to the main thread and attached to a media element via its {{domxref("HTMLMediaElement.srcObject")}} property. `MediaSource` objects are not transferable because they are event targets, hence the need for `MediaSourceHandle`s.

Expand Down
8 changes: 3 additions & 5 deletions files/en-us/web/api/mediastreamtrackprocessor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@
title: MediaStreamTrackProcessor
slug: Web/API/MediaStreamTrackProcessor
page-type: web-api-interface
status:
- experimental
browser-compat: api.MediaStreamTrackProcessor
---

{{APIRef("Insertable Streams for MediaStreamTrack API")}}{{SeeCompatTable}}
{{APIRef("Insertable Streams for MediaStreamTrack API")}}

The **`MediaStreamTrackProcessor`** interface of the {{domxref('Insertable Streams for MediaStreamTrack API')}} consumes a {{domxref("MediaStreamTrack")}} object's source and generates a stream of media frames.

## Constructor

- {{domxref("MediaStreamTrackProcessor.MediaStreamTrackProcessor", "MediaStreamTrackProcessor()")}} {{Experimental_Inline}}
- {{domxref("MediaStreamTrackProcessor.MediaStreamTrackProcessor", "MediaStreamTrackProcessor()")}}
- : Creates a new `MediaStreamTrackProcessor` object.

## Instance properties

- {{domxref("MediaStreamTrackProcessor.readable")}} {{Experimental_Inline}}
- {{domxref("MediaStreamTrackProcessor.readable")}}
- : Returns a {{domxref("ReadableStream")}}.

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "MediaStreamTrackProcessor: MediaStreamTrackProcessor() constructor"
short-title: MediaStreamTrackProcessor()
slug: Web/API/MediaStreamTrackProcessor/MediaStreamTrackProcessor
page-type: web-api-constructor
status:
- experimental
browser-compat: api.MediaStreamTrackProcessor.MediaStreamTrackProcessor
---

{{APIRef("Insertable Streams for MediaStreamTrack API")}}{{SeeCompatTable}}
{{APIRef("Insertable Streams for MediaStreamTrack API")}}

The **`MediaStreamTrackProcessor()`** constructor creates a new {{domxref("MediaStreamTrackProcessor")}} object which consumes a {{domxref("MediaStreamTrack")}} object's source and generates a stream of media frames.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "MediaStreamTrackProcessor: readable property"
short-title: readable
slug: Web/API/MediaStreamTrackProcessor/readable
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.MediaStreamTrackProcessor.readable
---

{{APIRef("Insertable Streams for MediaStreamTrack API")}}{{SeeCompatTable}}
{{APIRef("Insertable Streams for MediaStreamTrack API")}}

The **`readable`** property of the {{domxref("MediaStreamTrackProcessor")}} interface returns a {{domxref("ReadableStream")}}.

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/shadowroot/gethtml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "ShadowRoot: getHTML() method"
short-title: getHTML()
slug: Web/API/ShadowRoot/getHTML
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.ShadowRoot.getHTML
---

{{APIRef("DOM")}}{{SeeCompatTable}}
{{APIRef("DOM")}}

The **`getHTML()`** method of the {{domxref("ShadowRoot")}} interface is used to serialize a shadow root's DOM to an HTML string.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/shadowroot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You can retrieve a reference to an element's shadow root using its {{domxref("El
- {{DOMxRef("ShadowRoot.pointerLockElement")}} {{ReadOnlyInline}}
- : Returns the {{DOMxRef('Element')}} set as the target for mouse events while the pointer is locked.
`null` if lock is pending, pointer is unlocked, or if the target is in another tree.
- {{DOMxRef("ShadowRoot.serializable")}} {{ReadOnlyInline}} {{experimental_inline}}
- {{DOMxRef("ShadowRoot.serializable")}} {{ReadOnlyInline}}
- : A boolean that indicates whether the shadow root is serializable.
A serializable shadow root inside an element will be serialized by {{DOMxRef('Element.getHTML()')}} or {{DOMxRef('ShadowRoot.getHTML()')}} when its [`options.serializableShadowRoots`](/en-US/docs/Web/API/Element/getHTML#serializableshadowroots) parameter is set `true`.
This is set when the shadow root is created.
Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/shadowroot/serializable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "ShadowRoot: serializable property"
short-title: serializable
slug: Web/API/ShadowRoot/serializable
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.ShadowRoot.serializable
---

{{APIRef("Shadow DOM")}}{{SeeCompatTable}}
{{APIRef("Shadow DOM")}}

The **`serializable`** read-only property of the {{domxref("ShadowRoot")}} interface returns `true` if the shadow root is serializable.

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/view_transitions_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
title: View Transitions API
slug: Web/API/View_Transitions_API
page-type: web-api-overview
status:
- experimental
browser-compat:
- api.Document.startViewTransition
- api.ViewTransition
spec-urls: https://drafts.csswg.org/css-view-transitions/
---

{{SeeCompatTable}}{{DefaultAPISidebar("View Transitions API")}}
{{DefaultAPISidebar("View Transitions API")}}

The **View Transitions API** provides a mechanism for easily creating animated transitions between different DOM states while also updating the DOM contents in a single step.

Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/viewtransition/finished/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "ViewTransition: finished property"
short-title: finished
slug: Web/API/ViewTransition/finished
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.ViewTransition.finished
---

{{APIRef("View Transitions API")}}{{SeeCompatTable}}
{{APIRef("View Transitions API")}}

The **`finished`** read-only property of the
{{domxref("ViewTransition")}} interface is a {{jsxref("Promise")}} that fulfills once the transition animation is finished, and the new page view is visible and interactive to the user.
Expand Down
12 changes: 5 additions & 7 deletions files/en-us/web/api/viewtransition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,27 @@
title: ViewTransition
slug: Web/API/ViewTransition
page-type: web-api-interface
status:
- experimental
browser-compat: api.ViewTransition
---

{{APIRef("View Transitions API")}}{{SeeCompatTable}}
{{APIRef("View Transitions API")}}

The **`ViewTransition`** interface of the {{domxref("View Transitions API", "View Transitions API", "", "nocode")}} represents a view transition, and provides functionality to react to the transition reaching different states (e.g. ready to run the animation, or animation finished) or skip the transition altogether.

This object type is returned by the {{domxref("Document.startViewTransition()", "document.startViewTransition()")}} method. When `startViewTransition()` is invoked, a sequence of steps is followed as explained in [The view transition process](/en-US/docs/Web/API/View_Transitions_API#the_view_transition_process). This also explains when the different promises fulfill.

## Instance properties

- {{domxref("ViewTransition.finished")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("ViewTransition.finished")}} {{ReadOnlyInline}}
- : A {{jsxref("Promise")}} that fulfills once the transition animation is finished, and the new page view is visible and interactive to the user.
- {{domxref("ViewTransition.ready")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("ViewTransition.ready")}} {{ReadOnlyInline}}
- : A {{jsxref("Promise")}} that fulfills once the pseudo-element tree is created and the transition animation is about to start.
- {{domxref("ViewTransition.updateCallbackDone")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("ViewTransition.updateCallbackDone")}} {{ReadOnlyInline}}
- : A {{jsxref("Promise")}} that fulfills when the promise returned by the {{domxref("Document.startViewTransition()", "document.startViewTransition()")}}'s callback fulfills.

## Instance methods

- {{domxref("ViewTransition.skipTransition", "skipTransition()")}} {{Experimental_Inline}}
- {{domxref("ViewTransition.skipTransition", "skipTransition()")}}
- : Skips the animation part of the view transition, but doesn't skip running the {{domxref("Document.startViewTransition()", "document.startViewTransition()")}} callback that updates the DOM.

## Examples
Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/viewtransition/ready/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "ViewTransition: ready property"
short-title: ready
slug: Web/API/ViewTransition/ready
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.ViewTransition.ready
---

{{APIRef("View Transitions API")}}{{SeeCompatTable}}
{{APIRef("View Transitions API")}}

The **`ready`** read-only property of the
{{domxref("ViewTransition")}} interface is a {{jsxref("Promise")}} that fulfills once the pseudo-element tree is created and the transition animation is about to start.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "ViewTransition: skipTransition() method"
short-title: skipTransition()
slug: Web/API/ViewTransition/skipTransition
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.ViewTransition.skipTransition
---

{{APIRef("View Transitions API")}}{{SeeCompatTable}}
{{APIRef("View Transitions API")}}

The **`skipTransition()`** method of the
{{domxref("ViewTransition")}} interface skips the animation part of the view transition, but doesn't skip running the {{domxref("Document.startViewTransition()", "document.startViewTransition()")}} callback that updates the DOM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "ViewTransition: updateCallbackDone property"
short-title: updateCallbackDone
slug: Web/API/ViewTransition/updateCallbackDone
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.ViewTransition.updateCallbackDone
---

{{APIRef("View Transitions API")}}{{SeeCompatTable}}
{{APIRef("View Transitions API")}}

The **`updateCallbackDone`** read-only property of the
{{domxref("ViewTransition")}} interface is a {{jsxref("Promise")}} that fulfills when the promise returned by the {{domxref("Document.startViewTransition()", "document.startViewTransition()")}}'s callback fulfills, or rejects when it rejects.
Expand Down