Skip to content

Commit

Permalink
Synchronize with BCD v5.2.1 (mdn#20370)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar authored and Himanshu Garg committed Sep 27, 2022
1 parent 3e576cf commit d3b7490
Show file tree
Hide file tree
Showing 19 changed files with 50 additions and 55 deletions.
15 changes: 8 additions & 7 deletions files/en-us/web/api/encodedaudiochunk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,32 @@ tags:
- Interface
- Reference
- EncodedAudioChunk
- Experimental
browser-compat: api.EncodedAudioChunk
---
{{DefaultAPISidebar("WebCodecs API")}}
{{APIRef("WebCodecs API")}}{{SeeCompatTable}}

The **`EncodedAudioChunk`** interface of the {{domxref('WebCodecs API','','',' ')}} represents a chunk of encoded audio data.

## Constructor

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

## Properties

- {{domxref("EncodedAudioChunk.type")}} {{ReadOnlyInline}}
- {{domxref("EncodedAudioChunk.type")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns a string indicating whether this chunk of data is a key chunk.
- {{domxref("EncodedAudioChunk.timestamp")}} {{ReadOnlyInline}}
- {{domxref("EncodedAudioChunk.timestamp")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns an integer representing the timestamp of the audio in microseconds.
- {{domxref("EncodedAudioChunk.duration")}} {{ReadOnlyInline}}
- {{domxref("EncodedAudioChunk.duration")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns an integer representing the duration of the audio in microseconds.
- {{domxref("EncodedAudioChunk.byteLength")}} {{ReadOnlyInline}}
- {{domxref("EncodedAudioChunk.byteLength")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns an integer representing the length of the audio in bytes.

## Methods

- {{domxref("EncodedAudioChunk.copyTo()")}}
- {{domxref("EncodedAudioChunk.copyTo()")}} {{Experimental_Inline}}
- : Copies the encoded audio data.

## Specifications
Expand Down
15 changes: 8 additions & 7 deletions files/en-us/web/api/encodedvideochunk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,32 @@ tags:
- Interface
- Reference
- EncodedVideoChunk
- Experimental
browser-compat: api.EncodedVideoChunk
---
{{DefaultAPISidebar("WebCodecs API")}}
{{APIRef("WebCodecs API")}}{{SeeCompatTable}}

The **`EncodedVideoChunk`** interface of the {{domxref('WebCodecs API','','',' ')}} represents a chunk of encoded video data.

## Constructor

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

## Properties

- {{domxref("EncodedVideoChunk.type")}} {{ReadOnlyInline}}
- {{domxref("EncodedVideoChunk.type")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns a string indicating whether this chunk of data is a key chunk.
- {{domxref("EncodedVideoChunk.timestamp")}} {{ReadOnlyInline}}
- {{domxref("EncodedVideoChunk.timestamp")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns an integer representing the timestamp of the video in microseconds.
- {{domxref("EncodedVideoChunk.duration")}} {{ReadOnlyInline}}
- {{domxref("EncodedVideoChunk.duration")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns an integer representing the duration of the video in microseconds.
- {{domxref("EncodedVideoChunk.byteLength")}} {{ReadOnlyInline}}
- {{domxref("EncodedVideoChunk.byteLength")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns an integer representing the length of the video in bytes.

## Methods

- {{domxref("EncodedVideoChunk.copyTo()")}}
- {{domxref("EncodedVideoChunk.copyTo()")}} {{Experimental_Inline}}
- : Copies the encoded video data.

## Specifications
Expand Down
11 changes: 6 additions & 5 deletions files/en-us/web/api/featurepolicy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ tags:
- Reference
- access
- delegation
- Experimental
browser-compat: api.FeaturePolicy
---
{{APIRef("Feature Policy")}}
{{APIRef("Feature Policy")}}{{SeeCompatTable}}

The `FeaturePolicy` interface of the [Feature Policy API](/en-US/docs/Web/HTTP/Feature_Policy) represents the set of policies applied to the current execution context.

## FeaturePolicy Methods

- {{DOMxRef("FeaturePolicy.allowsFeature")}}
- {{DOMxRef("FeaturePolicy.allowsFeature")}} {{Experimental_Inline}}
- : Returns a Boolean that indicates whether or not a particular feature is enabled in the specified context.
- {{DOMxRef("FeaturePolicy.features")}}
- {{DOMxRef("FeaturePolicy.features")}} {{Experimental_Inline}}
- : Returns a list of names of all features supported by the User Agent. Feature whose name appears on the list might not be allowed by the Feature Policy of the current execution context and/or might not be accessible because of user's permissions.
- {{DOMxRef("FeaturePolicy.allowedFeatures")}}
- {{DOMxRef("FeaturePolicy.allowedFeatures")}} {{Experimental_Inline}}
- : Returns a list of names of all features supported by the User Agent and allowed by the Feature Policy. Note that features appearing on this list might still be behind a user permission.
- {{DOMxRef("FeaturePolicy.getAllowlistForFeature")}}
- {{DOMxRef("FeaturePolicy.getAllowlistForFeature")}} {{Experimental_Inline}}
- : Returns the Allow list for the specified feature.

## Specifications
Expand Down
9 changes: 5 additions & 4 deletions files/en-us/web/api/filesystemwritablefilestream/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ tags:
- Interface
- stream
- write file
- Experimental
browser-compat: api.FileSystemWritableFileStream
---
{{securecontext_header}}{{DefaultAPISidebar("File System Access API")}}
{{securecontext_header}}{{APIRef("File System Access API")}}{{SeeCompatTable}}

The **`FileSystemWritableFileStream`** interface of the {{domxref('File System Access API')}} is a {{domxref('WritableStream')}} object with additional convenience methods, which operates on a single file on disk. The interface is accessed through the {{domxref('FileSystemFileHandle.createWritable()')}} method.

Expand All @@ -25,11 +26,11 @@ _Inherits properties from its parent, {{DOMxRef("WritableStream")}}._

_Inherits methods from its parent, {{DOMxRef("WritableStream")}}._

- {{domxref('FileSystemWritableFileStream.write')}}
- {{domxref('FileSystemWritableFileStream.write')}} {{Experimental_Inline}}
- : Writes content into the file the method is called on, at the current file cursor offset.
- {{domxref('FileSystemWritableFileStream.seek')}}
- {{domxref('FileSystemWritableFileStream.seek')}} {{Experimental_Inline}}
- : Updates the current file cursor offset to the position (in bytes) specified.
- {{domxref('FileSystemWritableFileStream.truncate')}}
- {{domxref('FileSystemWritableFileStream.truncate')}} {{Experimental_Inline}}
- : Resizes the file associated with the stream to be the specified size in bytes.

## Examples
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/navigator/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ _Doesn't inherit any properties._
- : Returns a {{domxref("NavigatorUAData")}} object, which gives access to information about the browser and operating system of the user.
- {{domxref("Navigator.webdriver")}} {{ReadOnlyInline}}
- : Indicates whether the user agent is controlled by automation.
- {{domxref("Navigator.windowControlsOverlay")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("Navigator.windowControlsOverlay")}} {{ReadOnlyInline}}
- : Returns the {{domxref("WindowControlsOverlay")}} interface which exposes information about the geometry of the title bar in desktop Progressive Web Apps, and an event to know whenever it changes.
- {{domxref("Navigator.xr")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns {{domxref("XRSystem")}} object, which represents the entry point into the [WebXR API](/en-US/docs/Web/API/WebXR_Device_API).
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/navigator/windowcontrolsoverlay/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ tags:
- Property
- Reference
- Progressive Web Apps
- Experimental
browser-compat: api.Navigator.windowControlsOverlay
---
{{SecureContext_Header}}{{APIRef("")}}{{SeeCompatTable}}
{{SecureContext_Header}}{{APIRef("")}}

The **`windowControlsOverlay`** property of the {{domxref("Navigator")}}
interface returns the {{domxref("WindowControlsOverlay")}} interface, which exposes
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/window_controls_overlay_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ tags:
- Overview
- Reference
- Progressive Web Apps
- Experimental
browser-compat: api.WindowControlsOverlay
---
{{DefaultAPISidebar("Window Controls Overlay API")}}{{SeeCompatTable}}
{{DefaultAPISidebar("Window Controls Overlay API")}}

The Window Controls Overlay API gives Progressive Web Apps installed on desktop operating systems the ability to hide the default window title bar and display their own content
over the full surface area of the app window, turning the control buttons (maximize, minimize, and close) into an overlay.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ tags:
- Progressive Web Apps
- Window Controls Overlay
- events
- Experimental
browser-compat: api.WindowControlsOverlay.geometrychange_event
---
{{APIRef("EyeDropper API")}}{{SeeCompatTable}}
{{APIRef("EyeDropper API")}}

The `geometrychange` event is fired when the position, size, or visibility of a Progressive Web App's title bar area changes.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ tags:
- Reference
- WindowControlsOverlay
- Progressive Web Apps
- Experimental
browser-compat: api.WindowControlsOverlay.getTitlebarAreaRect
---
{{APIRef("Window Controls Overlay API")}}{{SeeCompatTable}}
{{APIRef("Window Controls Overlay API")}}

The **`getTitlebarAreaRect()`** method of the {{domxref('WindowControlsOverlay')}} interface queries the current geometry of the title bar area of the Progressive Web App window.

Expand Down
9 changes: 4 additions & 5 deletions files/en-us/web/api/windowcontrolsoverlay/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ tags:
- Interface
- Reference
- Progressive Web Apps
- Experimental
browser-compat: api.WindowControlsOverlay
---
{{SeeCompatTable}}{{APIRef("Window Controls Overlay API")}}{{securecontext_header}}
{{APIRef("Window Controls Overlay API")}}{{securecontext_header}}

The **`WindowControlsOverlay`** interface of the [Window Controls Overlay API](/en-US/docs/Web/API/Window_Controls_Overlay_API) exposes information about the geometry
of the title bar area in desktop Progressive Web Apps, and an event to know whenever it changes. This interface is accessible from {{domxref('Navigator.windowControlsOverlay')}}.
Expand All @@ -21,19 +20,19 @@ of the title bar area in desktop Progressive Web Apps, and an event to know when

## Properties

- {{domxref("WindowControlsOverlay.visible")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("WindowControlsOverlay.visible")}} {{ReadOnlyInline}}
- : A {{Glossary("Boolean")}} that indicates whether the window controls overlay is visible or not.

## Methods

- {{domxref("WindowControlsOverlay.getTitlebarAreaRect()")}} {{Experimental_Inline}}
- {{domxref("WindowControlsOverlay.getTitlebarAreaRect()")}}
- : Returns the size and position of the title bar.

## Events

Listen to these events using {{domxref('EventTarget.addEventListener()')}} or by assigning an event listener to the relevant `oneventname` property of this interface.

- [`geometrychange`](/en-US/docs/Web/API/WindowControlsOverlay/geometrychange_event) {{Experimental_Inline}}
- [`geometrychange`](/en-US/docs/Web/API/WindowControlsOverlay/geometrychange_event)
- : Fired when the geometry of the title bar area changes.

## Examples
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/windowcontrolsoverlay/visible/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ tags:
- Reference
- WindowControlsOverlay
- Progressive Web Apps
- Experimental
browser-compat: api.WindowControlsOverlay.visible
---
{{APIRef("Window Controls Overlay API")}}{{SeeCompatTable}}
{{APIRef("Window Controls Overlay API")}}

The **`visible`** property of a {{domxref("WindowControlsOverlay")}} object returns a {{Glossary("Boolean")}} that indicates whether the window controls overlay is visible or not.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,26 @@ tags:
- Interface
- WindowControlsOverlayGeometryChangeEvent
- Reference
- Experimental
browser-compat: api.WindowControlsOverlayGeometryChangeEvent
---
{{APIRef("Window Controls Overlay API")}}{{SeeCompatTable}}
{{APIRef("Window Controls Overlay API")}}

The **`WindowControlsOverlayGeometryChangeEvent`** interface of the [Window Controls Overlay API](/en-US/docs/Web/API/Window_Controls_Overlay_API) is passed to [`geometrychange`](/en-US/docs/Web/API/WindowControlsOverlay/geometrychange_event) when the size or visibility of a desktop Progress Web App's title bar region changes.

{{InheritanceDiagram}}

## Constructor

- {{domxref("WindowControlsOverlayGeometryChangeEvent.WindowControlsOverlayGeometryChangeEvent", "WindowControlsOverlayGeometryChangeEvent()")}} {{Experimental_Inline}}
- {{domxref("WindowControlsOverlayGeometryChangeEvent.WindowControlsOverlayGeometryChangeEvent", "WindowControlsOverlayGeometryChangeEvent()")}}
- : Creates a `WindowControlsOverlayGeometryChangeEvent` event with the given parameters.

## Properties

_Also inherits properties from its parent {{domxref("Event")}}_.

- {{domxref("WindowControlsOverlayGeometryChangeEvent.titlebarAreaRect")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("WindowControlsOverlayGeometryChangeEvent.titlebarAreaRect")}} {{ReadOnlyInline}}
- : A {{domxref("DOMRect")}} representing the position and size of the title bar region.
- {{domxref("WindowControlsOverlayGeometryChangeEvent.visible")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- {{domxref("WindowControlsOverlayGeometryChangeEvent.visible")}} {{ReadOnlyInline}}
- : A {{Glossary("Boolean")}} that indicates whether the window controls overlay is visible or not.

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ tags:
- API
- WindowControlsOverlayGeometryChangeEvent
- Property
- Experimental
browser-compat: api.WindowControlsOverlayGeometryChangeEvent.titlebarAreaRect
---
{{APIRef("Window Controls Overlay API")}}{{SeeCompatTable}}
{{APIRef("Window Controls Overlay API")}}

The **`titlebarAreaRect`** read-only property of the {{domxref("WindowControlsOverlayGeometryChangeEvent")}} is a {{domxref("DOMRect")}} representing the position and size of the area occupied by the title bar in a desktop-installed Progressive Web App.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ tags:
- API
- WindowControlsOverlayGeometryChangeEvent
- Property
- Experimental
browser-compat: api.WindowControlsOverlayGeometryChangeEvent.visible
---
{{APIRef("Window Controls Overlay API")}}{{SeeCompatTable}}
{{APIRef("Window Controls Overlay API")}}

The **`visible`** read-only property of the {{domxref("WindowControlsOverlayGeometryChangeEvent")}} is a boolean flag that indicates whether the window controls overlay is visible or not in a desktop-installed Progressive Web App.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ tags:
- Constructor
- DOM Events
- WindowControlsOverlayGeometryChangeEvent
- Experimental
browser-compat: api.WindowControlsOverlayGeometryChangeEvent.WindowControlsOverlayGeometryChangeEvent
---
{{APIRef("Window Controls Overlay API")}}{{SeeCompatTable}}
{{APIRef("Window Controls Overlay API")}}

The **`WindowControlsOverlayGeometryChangeEvent()`** constructor returns a newly created
{{domxref("WindowControlsOverlayGeometryChangeEvent")}}, representing the current geometry of a desktop Progressive Web App's title bar area.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/env/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ env(safe-area-inset-left, 1.4rem);

- `safe-area-inset-top`, `safe-area-inset-right`, `safe-area-inset-bottom`, `safe-area-inset-left`
- : The `safe-area-inset-*` variables are four environment variables that define a rectangle by its top, right, bottom, and left insets from the edge of the viewport, which is safe to put content into without risking it being cut off by the shape of a non‑rectangular display. For rectangular viewports, like your average laptop monitor, their value is equal to zero. For non-rectangular displays — like a round watch face — the four values set by the user agent form a rectangle such that all content inside the rectangle is visible.
- `titlebar-area-x`, `titlebar-area-y`, `titlebar-area-width`, `titlebar-area-height` {{Experimental_Inline}}
- `titlebar-area-x`, `titlebar-area-y`, `titlebar-area-width`, `titlebar-area-height`
- : The `titlebar-area-*` variables are useful for PWA installed on Desktop devices. When a desktop PWA uses the `window-controls-overlay` [display_override](/en-US/docs/Web/Manifest/display_override) value, then it can use the `titlebar-area-*` variables to make sure content doesn't overlap with the window control buttons (i.e. minimize, maximize, and close).

> **Note:** Unlike other CSS properties, user agent-defined property names are case-sensitive.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/font-size/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The `font-size` property is specified in one of the following ways:

> **Note:** To maximize accessibility, it is generally best to use values that are relative to the user's default font size.

- `math`
- `math` {{Experimental_Inline}}
Special [mathematical scaling rules](https://w3c.github.io/mathml-core/#the-math-script-level-property) must be applied when determining the computed value of the `font-size` property.

## Description
Expand Down
3 changes: 2 additions & 1 deletion files/en-us/web/css/tan/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ tags:
- Reference
- Web
- tan
- Experimental
browser-compat: css.types.tan
spec-urls: https://drafts.csswg.org/css-values/#trig-funcs
---
{{CSSRef}}
{{CSSRef}}{{SeeCompatTable}}

The **`tan()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) is a trigonometric function that returns the tangent of a number, which is a value between `−infinity` and `infinity`. The function contains a single calculation that must resolve to either a {{cssxref("<number>")}} or an {{cssxref("<angle>")}} by interpreting the result of the argument as radians.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/mathml/element/maction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The deprecated MathML **`<maction>`** element used to provide a possibility to b

This element's attributes include the [global MathML attributes](/en-US/docs/Web/MathML/Global_attributes) as well as the following attributes:

- `actiontype`
- `actiontype` {{Deprecated_Inline}}

- : The action which specifies what happens for this element. Special behavior
for the following values were implemented by some browsers:
Expand All @@ -26,7 +26,7 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web
- `toggle`: When there is a click on the subexpression, the rendering alternates the display of selected subexpressions. Therefore each click increments the `selection` value.
The syntax is: `<maction actiontype="toggle" selection="positive-integer" > expression1 expression2 expressionN </maction>`.

- `selection`
- `selection` {{Deprecated_Inline}}
- : The child element currently visible, only taken into account for `actiontype="toggle"` or non-standard `actiontype` values. The default value is `1`, which is the first child element.

## Examples
Expand Down

0 comments on commit d3b7490

Please sign in to comment.