Skip to content
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
4 changes: 1 addition & 3 deletions files/en-us/web/api/csscontainerrule/conditions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ title: "CSSContainerRule: conditions property"
short-title: conditions
slug: Web/API/CSSContainerRule/conditions
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.CSSContainerRule.conditions
---

{{ APIRef("CSSOM") }}{{SeeCompatTable}}
{{ APIRef("CSSOM") }}

The read-only **`conditions`** property of the {{domxref("CSSContainerRule")}} interface represents an associated CSS {{cssxref("@container")}} at-rule as an array of objects, where each object represents a single container condition.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csscontainerrule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The **`CSSContainerRule`** interface represents a single CSS {{cssxref("@contain

_Inherits properties from its ancestors {{domxref("CSSConditionRule")}}, {{domxref("CSSGroupingRule")}}, and {{domxref("CSSRule")}}._

- {{domxref("CSSContainerRule.conditions")}} {{ReadOnlyInline}} {{experimental_inline}}
- {{domxref("CSSContainerRule.conditions")}} {{ReadOnlyInline}}
- : Returns an array of objects, each of which specifies a container condition in a {{cssxref("@container")}} rule.
The objects have a `name` string property and a `query` string property, either of which may be the empty string if not defined.
The `name` represents the name of a container, and the `query` represents the set of feature tests that must be true for the particular condition to apply.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/request/destination/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Possible values are:
- : The target is a [speculation rules](/en-US/docs/Web/API/Speculation_Rules_API) JSON document.
- `"style"`
- : The target is a style
- `"text"`
- `"text"` {{experimental_inline}}
- : The target is a text file.
- `"track"`
- : The target is an HTML {{HTMLElement("track")}}.
Expand Down
4 changes: 3 additions & 1 deletion files/en-us/web/api/xrview/index/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ title: "XRView: index property"
short-title: index
slug: Web/API/XRView/index
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.XRView.index
---

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`index`** read-only property of the {{domxref("XRView")}} interface indicates the index of the current `XRView` in the {{domxref("XRViewerPose.views")}} array.

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

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`eye`** read-only property of the {{domxref("XRVisibilityMaskChangeEvent")}} interface indicates the eye the mask applies to.

Expand Down
16 changes: 9 additions & 7 deletions files/en-us/web/api/xrvisibilitymaskchangeevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
title: XRVisibilityMaskChangeEvent
slug: Web/API/XRVisibilityMaskChangeEvent
page-type: web-api-interface
status:
- experimental
browser-compat: api.XRVisibilityMaskChangeEvent
---

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`XRVisibilityMaskChangeEvent`** of the [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) describes the portion of an {{domxref("XRView")}} visible to the user after the view has changed, for example by specifying the eye that the view is relevant to, and the vertices of a visibility mask that defines the visible part of the view. This enables performance improvements by allowing the browser to draw only the visible part of the updated view.

Expand All @@ -15,22 +17,22 @@ An `XRVisibilityMaskChangeEvent` object is made available as the event object of

## Constructor

- {{domxref("XRVisibilityMaskChangeEvent.XRVisibilityMaskChangeEvent", "XRVisibilityMaskChangeEvent()")}}
- {{domxref("XRVisibilityMaskChangeEvent.XRVisibilityMaskChangeEvent", "XRVisibilityMaskChangeEvent()")}} {{experimental_inline}}
- : Creates and returns a new `XRVisibilityMaskChangeEvent` object.

## Instance properties

_In addition to properties inherited from its parent interface, {{domxref("Event")}}, `XRVisibilityMaskChangeEvent` provides the following:_

- {{domxref("XRVisibilityMaskChangeEvent.eye", "eye")}} {{ReadOnlyInline}}
- {{domxref("XRVisibilityMaskChangeEvent.eye", "eye")}} {{ReadOnlyInline}} {{experimental_inline}}
- : The eye the mask applies to.
- {{domxref("XRVisibilityMaskChangeEvent.index", "index")}} {{ReadOnlyInline}}
- {{domxref("XRVisibilityMaskChangeEvent.index", "index")}} {{ReadOnlyInline}} {{experimental_inline}}
- : The index of the current {{domxref("XRView")}} in the {{domxref("XRViewerPose.views")}} array.
- {{domxref("XRVisibilityMaskChangeEvent.indices", "indices")}} {{ReadOnlyInline}}
- {{domxref("XRVisibilityMaskChangeEvent.indices", "indices")}} {{ReadOnlyInline}} {{experimental_inline}}
- : Specifies the index position of each coordinate pair (not individual array index) inside the [`vertices`](#vertices) array that define the triangles used to draw the currently visible part of the scene displayed in the {{domxref("XRView")}}.
- {{domxref("XRVisibilityMaskChangeEvent.session", "session")}} {{ReadOnlyInline}}
- {{domxref("XRVisibilityMaskChangeEvent.session", "session")}} {{ReadOnlyInline}} {{experimental_inline}}
- : The {{domxref("XRSession")}} to which the event belongs.
- {{domxref("XRVisibilityMaskChangeEvent.vertices", "vertices")}} {{ReadOnlyInline}}
- {{domxref("XRVisibilityMaskChangeEvent.vertices", "vertices")}} {{ReadOnlyInline}} {{experimental_inline}}
- : An array representing the set of possible coordinate values that may be used in a visibility mask. If this array is empty, the whole region of the `XRView` will be drawn.

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

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`index`** read-only property of the {{domxref("XRVisibilityMaskChangeEvent")}} interface indicates the index of the current {{domxref("XRView")}} in the {{domxref("XRViewerPose.views")}} array.

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

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`indices`** read-only property of the {{domxref("XRVisibilityMaskChangeEvent")}} interface specifies the index position of each coordinate pair (not individual array index) inside the {{domxref("XRVisibilityMaskChangeEvent.vertices", "vertices")}} array that define the triangles used to draw the currently visible part of the scene displayed in the {{domxref("XRView")}}. If this array is empty, the whole region of the `XRView` will be drawn.

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

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`session`** read-only property of the {{domxref("XRVisibilityMaskChangeEvent")}} interface indicates the {{domxref("XRSession")}} to which the event belongs.

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

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The read-only **`vertices`** property of the {{domxref("XRVisibilityMaskChangeEvent")}} interface is an array representing all the coordinate values that may be used in the visibility mask. If this array is empty, the whole region of the `XRView` will be drawn.

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

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}
{{APIRef("WebXR Device API")}}{{SecureContext_Header}}{{SeeCompatTable}}

The **`XRVisibilityMaskChangeEvent()`** constructor creates and returns a new {{domxref("XRVisibilityMaskChangeEvent")}} object.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ title: Iterator.prototype.includes()
short-title: includes()
slug: Web/JavaScript/Reference/Global_Objects/Iterator/includes
page-type: javascript-instance-method
status:
- experimental
browser-compat: javascript.builtins.Iterator.includes
sidebar: jsref
---

{{SeeCompatTable}}

The **`includes()`** method of {{jsxref("Iterator")}} instances is similar to {{jsxref("Array.prototype.includes()")}}: it returns `true` if it finds an element that is equal to the given value. Otherwise, if the iterator is exhausted without finding such an element, it returns `false`.

## Syntax
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ These properties are defined on `Iterator.prototype` and shared by all `Iterator
- : Returns a new iterator helper object that takes each element in the original iterator, runs it through a mapping function, and yields elements returned by the mapping function (which are contained in another iterator or iterable).
- {{jsxref("Iterator.prototype.forEach()")}}
- : Executes a provided function once for each element produced by the iterator.
- {{jsxref("Iterator.prototype.includes()")}}
- {{jsxref("Iterator.prototype.includes()")}} {{experimental_inline}}
- : Returns `true` if an element produced by the iterator is equal to the given value. Otherwise, if the iterator is exhausted without finding such an element, it returns `false`.
- {{jsxref("Iterator.prototype.map()")}}
- : Returns a new iterator helper object that yields elements of the iterator, each transformed by a mapping function.
Expand Down