From 5a140a2b41f4fc2631bfb94bd53ba6370b270004 Mon Sep 17 00:00:00 2001 From: John Lenz Date: Thu, 26 Sep 2024 22:15:58 -0700 Subject: [PATCH 01/18] Reduce assertion about performance (#36053) * Update index.md Correct wording that implies the iterator helps are always more efficient. It is a trade off and depends on operations and the size of the array. Creating iterators and the iterator protocol has its own cost. * Update files/en-us/web/javascript/reference/global_objects/iterator/index.md --------- Co-authored-by: Joshua Chen --- .../web/javascript/reference/global_objects/iterator/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/global_objects/iterator/index.md b/files/en-us/web/javascript/reference/global_objects/iterator/index.md index dfb88734d1c840c..d3902493797c2bf 100644 --- a/files/en-us/web/javascript/reference/global_objects/iterator/index.md +++ b/files/en-us/web/javascript/reference/global_objects/iterator/index.md @@ -57,7 +57,7 @@ This first converts the iterator returned by {{jsxref("Map.prototype.values()")} const totalDeposit = nameToDeposit.values().reduce((a, b) => a + b); ``` -This method is more efficient, because it only iterates the iterator once, without memorizing any intermediate values. Iterator helper methods are necessary to work with infinite iterators: +This method may be more efficient, especially memory-wise, because it only iterates the iterator once, without memorizing any intermediate values. Iterator helper methods are necessary to work with infinite iterators: ```js function* fibonacci() { From fca3d118b765a990f223308b712fc78bc159043f Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Thu, 26 Sep 2024 22:28:08 -0700 Subject: [PATCH 02/18] Intl DisplayNames v2 updates (#36065) * Added `"languageDisplay"` to `resolvedOptions()` of `Intl.DisplayNames` objects * Added example of use of `languageDisplay` property in `Intl.DisplayNames.prototype.resolvedOptions()` returned value * Intl.DisplayNames.of(): Reworded description of `code` when using type `"language"` * `Intl.DisplayNames.prototype.of()`: Add examples for use of `languageDisplay` property * Update files/en-us/web/javascript/reference/global_objects/intl/displaynames/of/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../global_objects/intl/displaynames/of/index.md | 14 +++++++++++++- .../intl/displaynames/resolvedoptions/index.md | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/global_objects/intl/displaynames/of/index.md b/files/en-us/web/javascript/reference/global_objects/intl/displaynames/of/index.md index 8143db902c3f7d9..e7c09331e5f6dda 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/displaynames/of/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/displaynames/of/index.md @@ -25,7 +25,7 @@ of(code) - If the type is "region", `code` should be either an [two-letter ISO 3166 region code](https://www.iso.org/iso-3166-country-codes.html), or a [three-digit UN M49 geographic region](https://unstats.un.org/unsd/methodology/m49/). It is required to follow the [`unicode_region_subtag`](https://unicode.org/reports/tr35/#unicode_region_subtag) grammar. - If the type is "script", `code` should be an [four-letter ISO 15924 script code](https://unicode.org/iso15924/iso15924-codes.html). It is required to follow the [`unicode_script_subtag`](https://unicode.org/reports/tr35/#unicode_script_subtag) grammar. - - If the type is "language", `code` should be a _languageCode_ \["-" _scriptCode_] \["-" _regionCode_ ] \*("-" _variant_ ) subsequence of the [`unicode_language_id`](https://unicode.org/reports/tr35/#Unicode_language_identifier) grammar. _languageCode_ is either a two-letter ISO 639-1 language code or a three-letter ISO 639-2 language code. + - If the type is "language", `code` should be matched by the [`unicode_language_id`](https://unicode.org/reports/tr35/#Unicode_language_identifier) nonterminal. - If the type is "currency", `code` should be a [three-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html). It is required to have exactly three alphabetic characters. - If the type is "dateTimeField", `code` should be one of: `"era"`, `"year"`, `"quarter"`, `"month"`, `"weekOfYear"`, `"weekday"`, `"day"`, `"dayPeriod"`, `"hour"`, `"minute"`, `"second"`, `"timeZoneName"`. - If the type is "calendar", `code` should be a [calendar key](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/calendar). It is required to follow the `type` grammar of a [Unicode locale identifier](https://unicode.org/reports/tr35/#32-unicode-locale-identifier). @@ -54,6 +54,18 @@ languageNames.of("fr"); // "French" const currencyNames = new Intl.DisplayNames("en", { type: "currency" }); currencyNames.of("EUR"); // "Euro" + +const languageNamesStandard = new Intl.DisplayNames("fr", { + type: "language", + languageDisplay: "standard", +}); +languageNamesStandard.of("fr-CA"); // "français (Canada)" + +const languageNamesDialect = new Intl.DisplayNames("fr", { + type: "language", + languageDisplay: "dialect", +}); +languageNamesDialect.of("fr-CA"); // "français canadien" ``` ### Using fallback diff --git a/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md index f4df5a339ee78cd..ad160b7a853cebc 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md @@ -49,6 +49,10 @@ The object returned by `resolvedOptions()` has the following properties: - : The value provided for this property in the options argument of the constructor or the default value (`"code"`). Its value is either `"code"` or `"none"`. +- `languageDisplay` + - : The value provided for this property in the options argument of the constructor or + the default value (`"dialect"`). Its value is either `"dialect"` + or `"standard"`. ## Examples @@ -64,6 +68,17 @@ console.log(usedOptions.type); // "region" console.log(usedOptions.fallback); // "code" ``` +```js +const displayNames = new Intl.DisplayNames("en", { + type: "language", + languageDisplay: "standard", +}); + +const usedOptions = displayNames.resolvedOptions(); +console.log(usedOptions.type); // "language" +console.log(usedOptions.languageDisplay); // "standard" +``` + ## Specifications {{Specifications}} From 8ac0afb1dde419cf96f4243d18930971ca125d9c Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:53:05 +0200 Subject: [PATCH 03/18] refactor(WebGL): convert HTML tables to Markdown (#36073) * refactor(WebGL): convert HTML tables to Markdown * Apply suggestions from code review Co-authored-by: Brian Thomas Smith * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Brian Thomas Smith Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../web/api/webgl_api/constants/index.md | 1411 +++-------------- 1 file changed, 179 insertions(+), 1232 deletions(-) diff --git a/files/en-us/web/api/webgl_api/constants/index.md b/files/en-us/web/api/webgl_api/constants/index.md index c8826c6b3321f70..88d44b4bfb5d909 100644 --- a/files/en-us/web/api/webgl_api/constants/index.md +++ b/files/en-us/web/api/webgl_api/constants/index.md @@ -53,744 +53,131 @@ Constants passed to {{domxref("WebGLRenderingContext.clear()")}} to clear buffer Constants passed to {{domxref("WebGLRenderingContext.drawElements()")}} or {{domxref("WebGLRenderingContext.drawArrays()")}} to specify what kind of primitive to render. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
POINTS0x0000 - Passed to drawElements or drawArrays to draw - single points. -
LINES0x0001 - Passed to drawElements or drawArrays to draw - lines. Each vertex connects to the one after it. -
LINE_LOOP0x0002 - Passed to drawElements or drawArrays to draw - lines. Each set of two vertices is treated as a separate line segment. -
LINE_STRIP0x0003 - Passed to drawElements or drawArrays to draw a - connected group of line segments from the first vertex to the last. -
TRIANGLES0x0004 - Passed to drawElements or drawArrays to draw - triangles. Each set of three vertices creates a separate triangle. -
TRIANGLE_STRIP0x0005 - Passed to drawElements or drawArrays to draw a - connected group of triangles. -
TRIANGLE_FAN0x0006 - Passed to drawElements or drawArrays to draw a - connected group of triangles. Each vertex connects to the previous and - the first vertex in the fan. -
+| Constant name | Value | Description | +| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `POINTS` | 0x0000 | Passed to `drawElements` or `drawArrays` to draw single points. | +| `LINES` | 0x0001 | Passed to `drawElements` or `drawArrays` to draw lines. Each vertex connects to the one after it. | +| `LINE_LOOP` | 0x0002 | Passed to `drawElements` or `drawArrays` to draw lines. Each set of two vertices is treated as a separate line segment. | +| `LINE_STRIP` | 0x0003 | Passed to `drawElements` or `drawArrays` to draw a connected group of line segments from the first vertex to the last. | +| `TRIANGLES` | 0x0004 | Passed to `drawElements` or `drawArrays` to draw triangles. Each set of three vertices creates a separate triangle. | +| `TRIANGLE_STRIP` | 0x0005 | Passed to `drawElements` or `drawArrays` to draw a connected group of triangles. | +| `TRIANGLE_FAN` | 0x0006 | Passed to `drawElements` or `drawArrays` to draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan. | ### Blending modes Constants passed to {{domxref("WebGLRenderingContext.blendFunc()")}} or {{domxref("WebGLRenderingContext.blendFuncSeparate()")}} to specify the blending mode (for both, RGB and alpha, or separately). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
ZERO0 - Passed to blendFunc or blendFuncSeparate to - turn off a component. -
ONE1 - Passed to blendFunc or blendFuncSeparate to - turn on a component. -
SRC_COLOR0x0300 - Passed to blendFunc or blendFuncSeparate to - multiply a component by the source elements color. -
ONE_MINUS_SRC_COLOR0x0301 - Passed to blendFunc or blendFuncSeparate to - multiply a component by one minus the source elements color. -
SRC_ALPHA0x0302 - Passed to blendFunc or blendFuncSeparate to - multiply a component by the source's alpha. -
ONE_MINUS_SRC_ALPHA0x0303 - Passed to blendFunc or blendFuncSeparate to - multiply a component by one minus the source's alpha. -
DST_ALPHA0x0304 - Passed to blendFunc or blendFuncSeparate to - multiply a component by the destination's alpha. -
ONE_MINUS_DST_ALPHA0x0305 - Passed to blendFunc or blendFuncSeparate to - multiply a component by one minus the destination's alpha. -
DST_COLOR0x0306 - Passed to blendFunc or blendFuncSeparate to - multiply a component by the destination's color. -
ONE_MINUS_DST_COLOR0x0307 - Passed to blendFunc or blendFuncSeparate to - multiply a component by one minus the destination's color. -
SRC_ALPHA_SATURATE0x0308 - Passed to blendFunc or blendFuncSeparate to - multiply a component by the minimum of source's alpha or one minus the - destination's alpha. -
CONSTANT_COLOR0x8001 - Passed to blendFunc or blendFuncSeparate to - specify a constant color blend function. -
ONE_MINUS_CONSTANT_COLOR0x8002 - Passed to blendFunc or blendFuncSeparate to - specify one minus a constant color blend function. -
CONSTANT_ALPHA0x8003 - Passed to blendFunc or blendFuncSeparate to - specify a constant alpha blend function. -
ONE_MINUS_CONSTANT_ALPHA0x8004 - Passed to blendFunc or blendFuncSeparate to - specify one minus a constant alpha blend function. -
+| Constant name | Value | Description | +| -------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `ZERO` | 0 | Passed to `blendFunc` or `blendFuncSeparate` to turn off a component. | +| `ONE` | 1 | Passed to `blendFunc` or `blendFuncSeparate` to turn on a component. | +| `SRC_COLOR` | 0x0300 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by the source element's color. | +| `ONE_MINUS_SRC_COLOR` | 0x0301 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by one minus the source element's color. | +| `SRC_ALPHA` | 0x0302 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by the source's alpha. | +| `ONE_MINUS_SRC_ALPHA` | 0x0303 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by one minus the source's alpha. | +| `DST_ALPHA` | 0x0304 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by the destination's alpha. | +| `ONE_MINUS_DST_ALPHA` | 0x0305 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by one minus the destination's alpha. | +| `DST_COLOR` | 0x0306 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by the destination's color. | +| `ONE_MINUS_DST_COLOR` | 0x0307 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by one minus the destination's color. | +| `SRC_ALPHA_SATURATE` | 0x0308 | Passed to `blendFunc` or `blendFuncSeparate` to multiply a component by the minimum of source's alpha or one minus the destination's alpha. | +| `CONSTANT_COLOR` | 0x8001 | Passed to `blendFunc` or `blendFuncSeparate` to specify a constant color blend function. | +| `ONE_MINUS_CONSTANT_COLOR` | 0x8002 | Passed to `blendFunc` or `blendFuncSeparate` to specify one minus a constant color blend function. | +| `CONSTANT_ALPHA` | 0x8003 | Passed to `blendFunc` or `blendFuncSeparate` to specify a constant alpha blend function. | +| `ONE_MINUS_CONSTANT_ALPHA` | 0x8004 | Passed to `blendFunc` or `blendFuncSeparate` to specify one minus a constant alpha blend function. | ### Blending equations Constants passed to {{domxref("WebGLRenderingContext.blendEquation()")}} or {{domxref("WebGLRenderingContext.blendEquationSeparate()")}} to control how the blending is calculated (for both, RGB and alpha, or separately). - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
FUNC_ADD0x8006 - Passed to blendEquation or - blendEquationSeparate to set an addition blend function. -
FUNC_SUBTRACT0x800A - Passed to blendEquation or - blendEquationSeparate to specify a subtraction blend - function (source - destination). -
FUNC_REVERSE_SUBTRACT0x800B - Passed to blendEquation or - blendEquationSeparate to specify a reverse subtraction - blend function (destination - source). -
+| Constant name | Value | Description | +| ----------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------- | +| `FUNC_ADD` | 0x8006 | Passed to `blendEquation` or `blendEquationSeparate` to set an addition blend function. | +| `FUNC_SUBTRACT` | 0x800A | Passed to `blendEquation` or `blendEquationSeparate` to specify a subtraction blend function (source - destination). | +| `FUNC_REVERSE_SUBTRACT` | 0x800B | Passed to `blendEquation` or `blendEquationSeparate` to specify a reverse subtraction blend function (destination - source). | ### Getting GL parameter information Constants passed to {{domxref("WebGLRenderingContext.getParameter()")}} to specify what information to return. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
BLEND_EQUATION0x8009 - Passed to getParameter to get the current RGB blend - function. -
BLEND_EQUATION_RGB0x8009 - Passed to getParameter to get the current RGB blend - function. Same as BLEND_EQUATION -
BLEND_EQUATION_ALPHA0x883D - Passed to getParameter to get the current alpha blend - function. -
BLEND_DST_RGB0x80C8 - Passed to getParameter to get the current destination RGB - blend function. -
BLEND_SRC_RGB0x80C9 - Passed to getParameter to get the current destination RGB - blend function. -
BLEND_DST_ALPHA0x80CA - Passed to getParameter to get the current destination alpha - blend function. -
BLEND_SRC_ALPHA0x80CB - Passed to getParameter to get the current source alpha - blend function. -
BLEND_COLOR0x8005 - Passed to getParameter to return a the current blend color. -
ARRAY_BUFFER_BINDING0x8894 - Passed to getParameter to get the array buffer binding. -
ELEMENT_ARRAY_BUFFER_BINDING0x8895 - Passed to getParameter to get the current element array - buffer. -
LINE_WIDTH0x0B21 - Passed to getParameter to get the current - lineWidth (set by the lineWidth method). -
ALIASED_POINT_SIZE_RANGE0x846D - Passed to getParameter to get the current size of a point - drawn with gl.POINTS -
ALIASED_LINE_WIDTH_RANGE0x846E - Passed to getParameter to get the range of available widths for a line. - The getParameter method then returns an array with two elements: the first element is the minimum width value and the second element is the maximum width value. -
CULL_FACE_MODE0x0B45 - Passed to getParameter to get the current value of - cullFace. Should return FRONT, - BACK, or FRONT_AND_BACK -
FRONT_FACE0x0B46 - Passed to getParameter to determine the current value of - frontFace. Should return CW or - CCW. -
DEPTH_RANGE0x0B70 - Passed to getParameter to return a length-2 array of floats - giving the current depth range. -
DEPTH_WRITEMASK0x0B72 - Passed to getParameter to determine if the depth write mask - is enabled. -
DEPTH_CLEAR_VALUE0x0B73 - Passed to getParameter to determine the current depth clear - value. -
DEPTH_FUNC0x0B74 - Passed to getParameter to get the current depth function. - Returns NEVER, ALWAYS, LESS, - EQUAL, LEQUAL, GREATER, - GEQUAL, or NOTEQUAL. -
STENCIL_CLEAR_VALUE0x0B91 - Passed to getParameter to get the value the stencil will be - cleared to. -
STENCIL_FUNC0x0B92 - Passed to getParameter to get the current stencil function. - Returns NEVER, ALWAYS, LESS, - EQUAL, LEQUAL, GREATER, - GEQUAL, or NOTEQUAL. -
STENCIL_FAIL0x0B94 - Passed to getParameter to get the current stencil fail - function. Should return KEEP, REPLACE, - INCR, DECR, INVERT, - INCR_WRAP, or DECR_WRAP. -
STENCIL_PASS_DEPTH_FAIL0x0B95 - Passed to getParameter to get the current stencil fail - function should the depth buffer test fail. Should return - KEEP, REPLACE, INCR, - DECR, INVERT, INCR_WRAP, or - DECR_WRAP. -
STENCIL_PASS_DEPTH_PASS0x0B96 - Passed to getParameter to get the current stencil fail - function should the depth buffer test pass. Should return KEEP, REPLACE, - INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. -
STENCIL_REF0x0B97 - Passed to getParameter to get the reference value used for - stencil tests. -
STENCIL_VALUE_MASK0x0B93
STENCIL_WRITEMASK0x0B98
STENCIL_BACK_FUNC0x8800
STENCIL_BACK_FAIL0x8801
STENCIL_BACK_PASS_DEPTH_FAIL0x8802
STENCIL_BACK_PASS_DEPTH_PASS0x8803
STENCIL_BACK_REF0x8CA3
STENCIL_BACK_VALUE_MASK0x8CA4
STENCIL_BACK_WRITEMASK0x8CA5
VIEWPORT0x0BA2 - Returns an {{jsxref("Int32Array")}} with four elements for the - current viewport dimensions. -
SCISSOR_BOX0x0C10 - Returns an {{jsxref("Int32Array")}} with four elements for the - current scissor box dimensions. -
COLOR_CLEAR_VALUE0x0C22
COLOR_WRITEMASK0x0C23
UNPACK_ALIGNMENT0x0CF5
PACK_ALIGNMENT0x0D05
MAX_TEXTURE_SIZE0x0D33
MAX_VIEWPORT_DIMS0x0D3A
SUBPIXEL_BITS0x0D50
RED_BITS0x0D52
GREEN_BITS0x0D53
BLUE_BITS0x0D54
ALPHA_BITS0x0D55
DEPTH_BITS0x0D56
STENCIL_BITS0x0D57
POLYGON_OFFSET_UNITS0x2A00
POLYGON_OFFSET_FACTOR0x8038
TEXTURE_BINDING_2D0x8069
SAMPLE_BUFFERS0x80A8
SAMPLES0x80A9
SAMPLE_COVERAGE_VALUE0x80AA
SAMPLE_COVERAGE_INVERT0x80AB
COMPRESSED_TEXTURE_FORMATS0x86A3
VENDOR0x1F00
RENDERER0x1F01
VERSION0x1F02
IMPLEMENTATION_COLOR_READ_TYPE0x8B9A
IMPLEMENTATION_COLOR_READ_FORMAT0x8B9B
BROWSER_DEFAULT_WEBGL0x9244
+| Constant name | Value | Description | +| ---------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `BLEND_EQUATION` | 0x8009 | Passed to `getParameter` to get the current RGB blend function. | +| `BLEND_EQUATION_RGB` | 0x8009 | Passed to `getParameter` to get the current RGB blend function. Same as `BLEND_EQUATION` | +| `BLEND_EQUATION_ALPHA` | 0x883D | Passed to `getParameter` to get the current alpha blend function. | +| `BLEND_DST_RGB` | 0x80C8 | Passed to `getParameter` to get the current destination RGB blend function. | +| `BLEND_SRC_RGB` | 0x80C9 | Passed to `getParameter` to get the current destination RGB blend function. | +| `BLEND_DST_ALPHA` | 0x80CA | Passed to `getParameter` to get the current destination alpha blend function. | +| `BLEND_SRC_ALPHA` | 0x80CB | Passed to `getParameter` to get the current source alpha blend function. | +| `BLEND_COLOR` | 0x8005 | Passed to `getParameter` to return the current blend color. | +| `ARRAY_BUFFER_BINDING` | 0x8894 | Passed to `getParameter` to get the array buffer binding. | +| `ELEMENT_ARRAY_BUFFER_BINDING` | 0x8895 | Passed to `getParameter` to get the current element array buffer. | +| `LINE_WIDTH` | 0x0B21 | Passed to `getParameter` to get the current `lineWidth` (set by the `lineWidth` method). | +| `ALIASED_POINT_SIZE_RANGE` | 0x846D | Passed to `getParameter` to get the current size of a point drawn with `gl.POINTS` | +| `ALIASED_LINE_WIDTH_RANGE` | 0x846E | Passed to `getParameter` to get the range of available widths for a line. The `getParameter` method then returns an array with two elements: the first element is the minimum width value and the second element is the maximum width value. | +| `CULL_FACE_MODE` | 0x0B45 | Passed to `getParameter` to get the current value of `cullFace`. Should return `FRONT`, `BACK`, or `FRONT_AND_BACK` | +| `FRONT_FACE` | 0x0B46 | Passed to `getParameter` to determine the current value of `frontFace`. Should return `CW` or `CCW`. | +| `DEPTH_RANGE` | 0x0B70 | Passed to `getParameter` to return a length-2 array of floats giving the current depth range. | +| `DEPTH_WRITEMASK` | 0x0B72 | Passed to `getParameter` to determine if the depth write mask is enabled. | +| `DEPTH_CLEAR_VALUE` | 0x0B73 | Passed to `getParameter` to determine the current depth clear value. | +| `DEPTH_FUNC` | 0x0B74 | Passed to `getParameter` to get the current depth function. Returns `NEVER`, `ALWAYS`, `LESS`, `EQUAL`, `LEQUAL`, `GREATER`, `GEQUAL`, or `NOTEQUAL`. | +| `STENCIL_CLEAR_VALUE` | 0x0B91 | Passed to `getParameter` to get the value the stencil will be cleared to. | +| `STENCIL_FUNC` | 0x0B92 | Passed to `getParameter` to get the current stencil function. Returns `NEVER`, `ALWAYS`, `LESS`, `EQUAL`, `LEQUAL`, `GREATER`, `GEQUAL`, or `NOTEQUAL`. | +| `STENCIL_FAIL` | 0x0B94 | Passed to `getParameter` to get the current stencil fail function. Should return `KEEP`, `REPLACE`, `INCR`, `DECR`, `INVERT`, `INCR_WRAP`, or `DECR_WRAP`. | +| `STENCIL_PASS_DEPTH_FAIL` | 0x0B95 | Passed to `getParameter` to get the current stencil fail function should the depth buffer test fail. Should return `KEEP`, `REPLACE`, `INCR`, `DECR`, `INVERT`, `INCR_WRAP`, or `DECR_WRAP`. | +| `STENCIL_PASS_DEPTH_PASS` | 0x0B96 | Passed to `getParameter` to get the current stencil fail function should the depth buffer test pass. Should return `KEEP`, `REPLACE`, `INCR`, `DECR`, `INVERT`, `INCR_WRAP`, or `DECR_WRAP`. | +| `STENCIL_REF` | 0x0B97 | Passed to `getParameter` to get the reference value used for stencil tests. | +| `STENCIL_VALUE_MASK` | 0x0B93 | | +| `STENCIL_WRITEMASK` | 0x0B98 | | +| `STENCIL_BACK_FUNC` | 0x8800 | | +| `STENCIL_BACK_FAIL` | 0x8801 | | +| `STENCIL_BACK_PASS_DEPTH_FAIL` | 0x8802 | | +| `STENCIL_BACK_PASS_DEPTH_PASS` | 0x8803 | | +| `STENCIL_BACK_REF` | 0x8CA3 | | +| `STENCIL_BACK_VALUE_MASK` | 0x8CA4 | | +| `STENCIL_BACK_WRITEMASK` | 0x8CA5 | | +| `VIEWPORT` | 0x0BA2 | Returns an {{jsxref("Int32Array")}} with four elements for the current viewport dimensions. | +| `SCISSOR_BOX` | 0x0C10 | Returns an {{jsxref("Int32Array")}} with four elements for the current scissor box dimensions. | +| `COLOR_CLEAR_VALUE` | 0x0C22 | | +| `COLOR_WRITEMASK` | 0x0C23 | | +| `UNPACK_ALIGNMENT` | 0x0CF5 | | +| `PACK_ALIGNMENT` | 0x0D05 | | +| `MAX_TEXTURE_SIZE` | 0x0D33 | | +| `MAX_VIEWPORT_DIMS` | 0x0D3A | | +| `SUBPIXEL_BITS` | 0x0D50 | | +| `RED_BITS` | 0x0D52 | | +| `GREEN_BITS` | 0x0D53 | | +| `BLUE_BITS` | 0x0D54 | | +| `ALPHA_BITS` | 0x0D55 | | +| `DEPTH_BITS` | 0x0D56 | | +| `STENCIL_BITS` | 0x0D57 | | +| `POLYGON_OFFSET_UNITS` | 0x2A00 | | +| `POLYGON_OFFSET_FACTOR` | 0x8038 | | +| `TEXTURE_BINDING_2D` | 0x8069 | | +| `SAMPLE_BUFFERS` | 0x80A8 | | +| `SAMPLES` | 0x80A9 | | +| `SAMPLE_COVERAGE_VALUE` | 0x80AA | | +| `SAMPLE_COVERAGE_INVERT` | 0x80AB | | +| `COMPRESSED_TEXTURE_FORMATS` | 0x86A3 | | +| `VENDOR` | 0x1F00 | | +| `RENDERER` | 0x1F01 | | +| `VERSION` | 0x1F02 | | +| `IMPLEMENTATION_COLOR_READ_TYPE` | 0x8B9A | | +| `IMPLEMENTATION_COLOR_READ_FORMAT` | 0x8B9B | | +| `BROWSER_DEFAULT_WEBGL` | 0x9244 | | ### Buffers Constants passed to {{domxref("WebGLRenderingContext.bufferData()")}}, {{domxref("WebGLRenderingContext.bufferSubData()")}}, {{domxref("WebGLRenderingContext.bindBuffer()")}}, or {{domxref("WebGLRenderingContext.getBufferParameter()")}}. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
STATIC_DRAW0x88E4 - Passed to bufferData as a hint about whether the contents - of the buffer are likely to be used often and not change often. -
STREAM_DRAW0x88E0 - Passed to bufferData as a hint about whether the contents - of the buffer are likely to not be used often. -
DYNAMIC_DRAW0x88E8 - Passed to bufferData as a hint about whether the contents - of the buffer are likely to be used often and change often. -
ARRAY_BUFFER0x8892 - Passed to bindBuffer or bufferData to specify - the type of buffer being used. -
ELEMENT_ARRAY_BUFFER0x8893 - Passed to bindBuffer or bufferData to specify - the type of buffer being used. -
BUFFER_SIZE0x8764Passed to getBufferParameter to get a buffer's size.
BUFFER_USAGE0x8765 - Passed to getBufferParameter to get the hint for the buffer - passed in when it was created. -
+| Constant name | Value | Description | +| ---------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- | +| `STATIC_DRAW` | 0x88E4 | Passed to `bufferData` as a hint about whether the contents of the buffer are likely to be used often and not change often. | +| `STREAM_DRAW` | 0x88E0 | Passed to `bufferData` as a hint about whether the contents of the buffer are likely to not be used often. | +| `DYNAMIC_DRAW` | 0x88E8 | Passed to `bufferData` as a hint about whether the contents of the buffer are likely to be used often and change often. | +| `ARRAY_BUFFER` | 0x8892 | Passed to `bindBuffer` or `bufferData` to specify the type of buffer being used. | +| `ELEMENT_ARRAY_BUFFER` | 0x8893 | Passed to `bindBuffer` or `bufferData` to specify the type of buffer being used. | +| `BUFFER_SIZE` | 0x8764 | Passed to `getBufferParameter` to get a buffer's size. | +| `BUFFER_USAGE` | 0x8765 | Passed to `getBufferParameter` to get the hint for the buffer passed in when it was created. | ### Vertex attributes @@ -811,137 +198,27 @@ Constants passed to {{domxref("WebGLRenderingContext.getVertexAttrib()")}}. Constants passed to {{domxref("WebGLRenderingContext.cullFace()")}}. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
CULL_FACE0x0B44 - Passed to enable/disable to turn on/off - culling. Can also be used with getParameter to find the - current culling method. -
FRONT0x0404 - Passed to cullFace to specify that only front faces should - be culled. -
BACK0x0405 - Passed to cullFace to specify that only back faces should - be culled. -
FRONT_AND_BACK0x0408 - Passed to cullFace to specify that front and back faces - should be culled. -
+| Constant name | Value | Description | +| ---------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------- | +| `CULL_FACE` | 0x0B44 | Passed to `enable`/`disable` to turn on/off culling. Can also be used with `getParameter` to find the current culling method. | +| `FRONT` | 0x0404 | Passed to `cullFace` to specify that only front faces should be culled. | +| `BACK` | 0x0405 | Passed to `cullFace` to specify that only back faces should be culled. | +| `FRONT_AND_BACK` | 0x0408 | Passed to `cullFace` to specify that front and back faces should be culled. | ### Enabling and disabling Constants passed to {{domxref("WebGLRenderingContext.enable()")}} or {{domxref("WebGLRenderingContext.disable()")}}. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
BLEND0x0BE2 - Passed to enable/disable to turn on/off - blending. Can also be used with getParameter to find the - current blending method. -
DEPTH_TEST0x0B71 - Passed to enable/disable to turn on/off the - depth test. Can also be used with getParameter to query the - depth test. -
DITHER0x0BD0 - Passed to enable/disable to turn on/off - dithering. Can also be used with getParameter to find the - current dithering method. -
POLYGON_OFFSET_FILL0x8037 - Passed to enable/disable to turn on/off the - polygon offset. Useful for rendering hidden-line images, decals, and or - solids with highlighted edges. Can also be used with - getParameter to query the scissor test. -
SAMPLE_ALPHA_TO_COVERAGE0x809E - Passed to enable/disable to turn on/off the - alpha to coverage. Used in multi-sampling alpha channels. -
SAMPLE_COVERAGE0x80A0 - Passed to enable/disable to turn on/off the - sample coverage. Used in multi-sampling. -
SCISSOR_TEST0x0C11 - Passed to enable/disable to turn on/off the - scissor test. Can also be used with getParameter to query - the scissor test. -
STENCIL_TEST0x0B90 - Passed to enable/disable to turn on/off the - stencil test. Can also be used with getParameter to query - the stencil test. -
+| Constant name | Value | Description | +| -------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `BLEND` | 0x0BE2 | Passed to `enable`/`disable` to turn on/off blending. Can also be used with `getParameter` to find the current blending method. | +| `DEPTH_TEST` | 0x0B71 | Passed to `enable`/`disable` to turn on/off the depth test. Can also be used with `getParameter` to query the depth test. | +| `DITHER` | 0x0BD0 | Passed to `enable`/`disable` to turn on/off dithering. Can also be used with `getParameter` to find the current dithering method. | +| `POLYGON_OFFSET_FILL` | 0x8037 | Passed to `enable`/`disable` to turn on/off the polygon offset. Useful for rendering hidden-line images, decals, and solids with highlighted edges. Can also be used with `getParameter` to query the scissor test. | +| `SAMPLE_ALPHA_TO_COVERAGE` | 0x809E | Passed to `enable`/`disable` to turn on/off the alpha to coverage. Used in multi-sampling alpha channels. | +| `SAMPLE_COVERAGE` | 0x80A0 | Passed to `enable`/`disable` to turn on/off the sample coverage. Used in multi-sampling. | +| `SCISSOR_TEST` | 0x0C11 | Passed to `enable`/`disable` to turn on/off the scissor test. Can also be used with `getParameter` to query the scissor test. | +| `STENCIL_TEST` | 0x0B90 | Passed to `enable`/`disable` to turn on/off the stencil test. Can also be used with `getParameter` to query the stencil test. | ### Errors @@ -969,40 +246,12 @@ Constants passed to {{domxref("WebGLRenderingContext.frontFace()")}}. Constants passed to {{domxref("WebGLRenderingContext.hint()")}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
DONT_CARE0x1100There is no preference for this behavior.
FASTEST0x1101The most efficient behavior should be used.
NICEST0x1102The most correct or the highest quality option should be used.
GENERATE_MIPMAP_HINT0x8192 - Hint for the quality of filtering when generating mipmap images with - {{domxref("WebGLRenderingContext.generateMipmap()")}}. -
+| Constant name | Value | Description | +| ---------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- | +| `DONT_CARE` | 0x1100 | There is no preference for this behavior. | +| `FASTEST` | 0x1101 | The most efficient behavior should be used. | +| `NICEST` | 0x1102 | The most correct or the highest quality option should be used. | +| `GENERATE_MIPMAP_HINT` | 0x8192 | Hint for the quality of filtering when generating mipmap images with {{domxref("WebGLRenderingContext.generateMipmap()")}}. | ### Data types @@ -1040,231 +289,42 @@ Constants passed to {{domxref("WebGLRenderingContext.hint()")}} Constants passed to {{domxref("WebGLRenderingContext.createShader()")}} or {{domxref("WebGLRenderingContext.getShaderParameter()")}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
FRAGMENT_SHADER0x8B30Passed to createShader to define a fragment shader.
VERTEX_SHADER0x8B31Passed to createShader to define a vertex shader
COMPILE_STATUS0x8B81 - Passed to getShaderParameter to get the status of the - compilation. Returns false if the shader was not compiled. You can then - query getShaderInfoLog to find the exact error -
DELETE_STATUS0x8B80 - Passed to getShaderParameter to determine if a shader was - deleted via deleteShader. Returns true if it was, false - otherwise. -
LINK_STATUS0x8B82 - Passed to getProgramParameter after calling - linkProgram to determine if a program was linked correctly. - Returns false if there were errors. Use - getProgramInfoLog to find the exact error. -
VALIDATE_STATUS0x8B83 - Passed to getProgramParameter after calling - validateProgram to determine if it is valid. Returns false - if errors were found. -
ATTACHED_SHADERS0x8B85 - Passed to getProgramParameter after calling - attachShader to determine if the shader was attached - correctly. Returns false if errors occurred. -
ACTIVE_ATTRIBUTES0x8B89 - Passed to getProgramParameter to get the number of - attributes active in a program. -
ACTIVE_UNIFORMS0x8B86 - Passed to getProgramParameter to get the number of uniforms - active in a program. -
MAX_VERTEX_ATTRIBS0x8869 - The maximum number of entries possible in the vertex attribute list. -
MAX_VERTEX_UNIFORM_VECTORS0x8DFB
MAX_VARYING_VECTORS0x8DFC
MAX_COMBINED_TEXTURE_IMAGE_UNITS0x8B4D
MAX_VERTEX_TEXTURE_IMAGE_UNITS0x8B4C
MAX_TEXTURE_IMAGE_UNITS0x8872 - Implementation dependent number of maximum texture units. At least 8. -
MAX_FRAGMENT_UNIFORM_VECTORS0x8DFD
SHADER_TYPE0x8B4F
SHADING_LANGUAGE_VERSION0x8B8C
CURRENT_PROGRAM0x8B8D
+| Constant name | Value | Description | +| ---------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `FRAGMENT_SHADER` | 0x8B30 | Passed to `createShader` to define a fragment shader. | +| `VERTEX_SHADER` | 0x8B31 | Passed to `createShader` to define a vertex shader | +| `COMPILE_STATUS` | 0x8B81 | Passed to `getShaderParameter` to get the status of the compilation. Returns false if the shader was not compiled. You can then query `getShaderInfoLog` to find the exact error | +| `DELETE_STATUS` | 0x8B80 | Passed to `getShaderParameter` to determine if a shader was deleted via `deleteShader`. Returns true if it was, false otherwise. | +| `LINK_STATUS` | 0x8B82 | Passed to `getProgramParameter` after calling `linkProgram` to determine if a program was linked correctly. Returns false if there were errors. Use `getProgramInfoLog` to find the exact error. | +| `VALIDATE_STATUS` | 0x8B83 | Passed to `getProgramParameter` after calling `validateProgram` to determine if it is valid. Returns false if errors were found. | +| `ATTACHED_SHADERS` | 0x8B85 | Passed to `getProgramParameter` after calling `attachShader` to determine if the shader was attached correctly. Returns false if errors occurred. | +| `ACTIVE_ATTRIBUTES` | 0x8B89 | Passed to `getProgramParameter` to get the number of attributes active in a program. | +| `ACTIVE_UNIFORMS` | 0x8B86 | Passed to `getProgramParameter` to get the number of uniforms active in a program. | +| `MAX_VERTEX_ATTRIBS` | 0x8869 | The maximum number of entries possible in the vertex attribute list. | +| `MAX_VERTEX_UNIFORM_VECTORS` | 0x8DFB | | +| `MAX_VARYING_VECTORS` | 0x8DFC | | +| `MAX_COMBINED_TEXTURE_IMAGE_UNITS` | 0x8B4D | | +| `MAX_VERTEX_TEXTURE_IMAGE_UNITS` | 0x8B4C | | +| `MAX_TEXTURE_IMAGE_UNITS` | 0x8872 | Implementation-dependent number of maximum texture units. At least 8. | +| `MAX_FRAGMENT_UNIFORM_VECTORS` | 0x8DFD | | +| `SHADER_TYPE` | 0x8B4F | | +| `SHADING_LANGUAGE_VERSION` | 0x8B8C | | +| `CURRENT_PROGRAM` | 0x8B8D | | ### Depth or stencil tests Constants passed to {{domxref("WebGLRenderingContext.depthFunc()")}} or {{domxref("WebGLRenderingContext.stencilFunc()")}}. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
NEVER0x0200 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will never pass, i.e., nothing will be - drawn. -
LESS0x0201 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will pass if the new depth value is less - than the stored value. -
EQUAL0x0202 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will pass if the new depth value is - equals to the stored value. -
LEQUAL0x0203 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will pass if the new depth value is less - than or equal to the stored value. -
GREATER0x0204 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will pass if the new depth value is - greater than the stored value. -
NOTEQUAL0x0205 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will pass if the new depth value is not - equal to the stored value. -
GEQUAL0x0206 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will pass if the new depth value is - greater than or equal to the stored value. -
ALWAYS0x0207 - Passed to depthFunction or stencilFunction to - specify depth or stencil tests will always pass, i.e., pixels will be - drawn in the order they are drawn. -
+| Constant name | Value | Description | +| ------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `NEVER` | 0x0200 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will never pass, i.e., nothing will be drawn. | +| `LESS` | 0x0201 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will pass if the new depth value is less than the stored value. | +| `EQUAL` | 0x0202 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will pass if the new depth value is equals to the stored value. | +| `LEQUAL` | 0x0203 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value. | +| `GREATER` | 0x0204 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will pass if the new depth value is greater than the stored value. | +| `NOTEQUAL` | 0x0205 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will pass if the new depth value is not equal to the stored value. | +| `GEQUAL` | 0x0206 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value. | +| `ALWAYS` | 0x0207 | Passed to `depthFunction` or `stencilFunction` to specify depth or stencil tests will always pass, i.e., pixels will be drawn in the order they are drawn. | ### Stencil actions @@ -1767,125 +827,29 @@ For more information, see {{domxref("EXT_texture_filter_anisotropic")}}. ### WEBGL_compressed_texture_s3tc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
COMPRESSED_RGB_S3TC_DXT1_EXT0x83F0A DXT1-compressed image in an RGB image format.
COMPRESSED_RGBA_S3TC_DXT1_EXT0x83F1 - A DXT1-compressed image in an RGB image format with a simple on/off - alpha value. -
COMPRESSED_RGBA_S3TC_DXT3_EXT0x83F2 - A DXT3-compressed image in an RGBA image format. Compared to a 32-bit - RGBA texture, it offers 4:1 compression. -
COMPRESSED_RGBA_S3TC_DXT5_EXT0x83F3 - A DXT5-compressed image in an RGBA image format. It also provides a 4:1 - compression, but differs to the DXT3 compression in how the alpha - compression is done. -
+| Constant name | Value | Description | +| ------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `COMPRESSED_RGB_S3TC_DXT1_EXT` | 0x83F0 | A DXT1-compressed image in an RGB image format. | +| `COMPRESSED_RGBA_S3TC_DXT1_EXT` | 0x83F1 | A DXT1-compressed image in an RGB image format with a simple on/off alpha value. | +| `COMPRESSED_RGBA_S3TC_DXT3_EXT` | 0x83F2 | A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression. | +| `COMPRESSED_RGBA_S3TC_DXT5_EXT` | 0x83F3 | A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3 compression in how the alpha compression is done. | For more information, see {{domxref("WEBGL_compressed_texture_s3tc")}}. ### WEBGL_compressed_texture_etc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Constant nameValueDescription
COMPRESSED_R11_EAC0x9270One-channel (red) unsigned format compression.
COMPRESSED_SIGNED_R11_EAC0x9271One-channel (red) signed format compression.
COMPRESSED_RG11_EAC0x9272Two-channel (red and green) unsigned format compression.
COMPRESSED_SIGNED_RG11_EAC0x9273Two-channel (red and green) signed format compression.
COMPRESSED_RGB8_ETC20x9274Compresses RGB8 data with no alpha channel.
COMPRESSED_RGBA8_ETC2_EAC0x9275 - Compresses RGBA8 data. The RGB part is encoded the same as - RGB_ETC2, but the alpha part is encoded separately. -
COMPRESSED_SRGB8_ETC20x9276Compresses sRGB8 data with no alpha channel.
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC0x9277 - Compresses sRGBA8 data. The sRGB part is encoded the same as - SRGB_ETC2, but the alpha part is encoded separately. -
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC20x9278 - Similar to RGB8_ETC, but with ability to punch through the - alpha channel, which means to make it completely opaque or transparent. -
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC20x9279 - Similar to SRGB8_ETC, but with ability to punch through the - alpha channel, which means to make it completely opaque or transparent. -
+| Constant name | Value | Description | +| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------- | +| `COMPRESSED_R11_EAC` | 0x9270 | One-channel (red) unsigned format compression. | +| `COMPRESSED_SIGNED_R11_EAC` | 0x9271 | One-channel (red) signed format compression. | +| `COMPRESSED_RG11_EAC` | 0x9272 | Two-channel (red and green) unsigned format compression. | +| `COMPRESSED_SIGNED_RG11_EAC` | 0x9273 | Two-channel (red and green) signed format compression. | +| `COMPRESSED_RGB8_ETC2` | 0x9274 | Compresses RGB8 data with no alpha channel. | +| `COMPRESSED_RGBA8_ETC2_EAC` | 0x9275 | Compresses RGBA8 data. The RGB part is encoded the same as `RGB_ETC2`, but the alpha part is encoded separately. | +| `COMPRESSED_SRGB8_ETC2` | 0x9276 | Compresses sRGB8 data with no alpha channel. | +| `COMPRESSED_SRGB8_ALPHA8_ETC2_EAC` | 0x9277 | Compresses sRGBA8 data. The sRGB part is encoded the same as `SRGB_ETC2`, but the alpha part is encoded separately. | +| `COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2` | 0x9278 | Similar to `RGB8_ETC`, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent. | +| `COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2` | 0x9279 | Similar to `SRGB8_ETC`, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent. | For more information, see {{domxref("WEBGL_compressed_texture_etc")}}. @@ -1957,26 +921,9 @@ For more information, see {{domxref("EXT_sRGB")}}. ### OES_standard_derivatives - - - - - - - - - - - - - - - -
Constant nameValueDescription
FRAGMENT_SHADER_DERIVATIVE_HINT_OES0x8B8B - Indicates the accuracy of the derivative calculation for the GLSL - built-in functions: dFdx, dFdy, and - fwidth. -
+| Constant name | Value | Description | +| ------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------- | +| `FRAGMENT_SHADER_DERIVATIVE_HINT_OES` | 0x8B8B | Indicates the accuracy of the derivative calculation for the GLSL built-in functions: `dFdx`, `dFdy`, and `fwidth`. | For more information, see {{domxref("OES_standard_derivatives")}}. From a966a8b4eade72a13de8a688c13f2d5056321f02 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 27 Sep 2024 06:24:11 -0400 Subject: [PATCH 04/18] Fix content issues (#36070) --- files/en-us/learn/css/building_blocks/organizing/index.md | 2 +- .../css/css_layout/practical_positioning_examples/index.md | 2 +- files/en-us/learn/css/styling_text/web_fonts/index.md | 2 +- .../what_will_your_website_look_like/index.md | 2 +- files/en-us/mdn/community/issues/index.md | 4 ++-- files/en-us/mdn/community/pull_requests/index.md | 2 +- .../add-ons/webextensions/api/webnavigation/index.md | 6 +++--- .../add-ons/webextensions/user_interface/omnibox/index.md | 2 +- files/en-us/web/api/navigator/scheduling/index.md | 2 +- files/en-us/web/api/scheduling/index.md | 2 +- files/en-us/web/api/scheduling/isinputpending/index.md | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/files/en-us/learn/css/building_blocks/organizing/index.md b/files/en-us/learn/css/building_blocks/organizing/index.md index b6de822a7edd92c..0a33fddc876f462 100644 --- a/files/en-us/learn/css/building_blocks/organizing/index.md +++ b/files/en-us/learn/css/building_blocks/organizing/index.md @@ -332,7 +332,7 @@ Read more about this system [BEM 101](https://css-tricks.com/bem-101/) on CSS Tr #### Other common systems -There are a large number of these systems in use. Other popular approaches include [Scalable and Modular Architecture for CSS (SMACSS)](https://smacss.com/), created by Jonathan Snook, [ITCSS](https://itcss.io/) from Harry Roberts, and [Atomic CSS (ACSS)](https://acss.io/), originally created by Yahoo!. If you come across a project that uses one of these approaches, then the advantage is that you will be able to search and find many articles and guides to help you understand how to code in the same style. +There are a large number of these systems in use. Other popular approaches include [Scalable and Modular Architecture for CSS (SMACSS)](https://smacss.com/), created by Jonathan Snook, [ITCSS](https://itcss.io/) from Harry Roberts, and [Atomizer CSS (ACSS)](https://acss-io.github.io/atomizer/), originally created by Yahoo!. If you come across a project that uses one of these approaches, then the advantage is that you will be able to search and find many articles and guides to help you understand how to code in the same style. The disadvantage of using such a system is that they can seem overly complex, especially for smaller projects. diff --git a/files/en-us/learn/css/css_layout/practical_positioning_examples/index.md b/files/en-us/learn/css/css_layout/practical_positioning_examples/index.md index 9763fb5e047c8bf..cae4a47972d6ec8 100644 --- a/files/en-us/learn/css/css_layout/practical_positioning_examples/index.md +++ b/files/en-us/learn/css/css_layout/practical_positioning_examples/index.md @@ -258,7 +258,7 @@ In our second example, we will take our first example — our info-box — and a > [!NOTE] > You can see the finished example running live at [fixed-info-box.html](https://mdn.github.io/learning-area/css/css-layout/practical-positioning-examples/fixed-info-box.html) ([source code](https://github.com/mdn/learning-area/blob/main/css/css-layout/practical-positioning-examples/fixed-info-box.html)). Check it out to get an idea of what you will be building in this section of the article. -As a starting point, you can use your completed example from the first section of the article, or make a local copy of [info-box.html](https://github.com/mdn/learning-area/blob/main/css/css-layout/practical-positioning-examples/info-box.html) from our GitHub repo. +As a starting point, you can use your completed example from the first section of the article, or make a local copy of [tabbed-info-box.html](https://github.com/mdn/learning-area/blob/main/css/css-layout/practical-positioning-examples/tabbed-info-box.html) from our GitHub repo. ### HTML additions diff --git a/files/en-us/learn/css/styling_text/web_fonts/index.md b/files/en-us/learn/css/styling_text/web_fonts/index.md index 67746b51cf8c4e0..3da26ecf79b015b 100644 --- a/files/en-us/learn/css/styling_text/web_fonts/index.md +++ b/files/en-us/learn/css/styling_text/web_fonts/index.md @@ -119,7 +119,7 @@ Web services for font generation typically limit file sizes. In such a case, con 1. [sfnt2woff-zopfli](https://github.com/bramstein/sfnt2woff-zopfli) for converting ttf to woff 2. [fontforge](https://fontforge.org/) for converting from ttf to svg -3. [batik ttf2svg](https://people.apache.org/~clay/batik/ttf2svg.html) for converting from ttf to svg +3. [batik ttf2svg](https://xmlgraphics.apache.org/batik/tools/font-converter.html) for converting from ttf to svg 4. [woff2](https://github.com/google/woff2) for converting from ttf to woff2 ### Implementing the code in your demo diff --git a/files/en-us/learn/getting_started_with_the_web/what_will_your_website_look_like/index.md b/files/en-us/learn/getting_started_with_the_web/what_will_your_website_look_like/index.md index e69248133149055..5bf53da692ce1f1 100644 --- a/files/en-us/learn/getting_started_with_the_web/what_will_your_website_look_like/index.md +++ b/files/en-us/learn/getting_started_with_the_web/what_will_your_website_look_like/index.md @@ -21,7 +21,7 @@ To begin, you'll need to answer these questions: 3. **What does your website look like,** in simple high-level terms? What's the background color? What kind of font is appropriate: formal, cartoony, bold and loud, subtle? > [!NOTE] -> Complex projects need detailed guidelines that go into all the details of colors, fonts, spacing between items on a page, appropriate writing style, and so on. This is sometimes called a design guide, design system, or brand book, and you can see an example at the [Firefox Acorn Design System](https://acorn.firefox.com/latest/). +> Complex projects need detailed guidelines that go into all the details of colors, fonts, spacing between items on a page, appropriate writing style, and so on. This is sometimes called a design guide, design system, or brand book, and you can see an example at the [Firefox Acorn Design System](https://acorn.firefox.com/latest). ## Sketching out your design diff --git a/files/en-us/mdn/community/issues/index.md b/files/en-us/mdn/community/issues/index.md index ffb7de143ad1e3f..5316815665c88df 100644 --- a/files/en-us/mdn/community/issues/index.md +++ b/files/en-us/mdn/community/issues/index.md @@ -103,7 +103,7 @@ These are the general steps for working on an issue: > [!NOTE] > An issue with the `needs triage` label indicates that the MDN Web Docs core team has not reviewed the issue yet, and you shouldn't begin work on it. -2. **Assign the issue to yourself:** After finding an issue you'd like to work on, make sure that the issue is not assigned to anybody else. Add a comment saying you would like to work on the issue, and if you are able to, [assign the issue to yourself](https://docs.github.com/en/issues/tracking-your-work-with-issues/assigning-issues-and-pull-requests-to-other-github-users#assigning-an-individual-issue-or-pull-request). +2. **Assign the issue to yourself:** After finding an issue you'd like to work on, make sure that the issue is not assigned to anybody else. Add a comment saying you would like to work on the issue, and if you are able to, [assign the issue to yourself](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/assigning-issues-and-pull-requests-to-other-github-users#assigning-an-individual-issue-or-pull-request). 3. **Do the research:** Most issues need some investigation before work can start. @@ -111,7 +111,7 @@ These are the general steps for working on an issue: - If the issue is well-described, and the work is pretty obvious, go ahead and do it. - If the issue is not well-described, and/or you are not sure what is needed, feel free to @mention the poster and ask for more information. -4. **Make the changes:** Fork and branch the repository. Do your work and open a [pull request](/en-US/docs/MDN/Community/Pull_requests) in the repository. [Reference the issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) in the pull request description. Depending on the files you've updated in the pull request, a reviewer will be assigned to your pull request automatically. (Teams per topic area are defined in the [CODEOWNERS](https://github.com/mdn/content/blob/main/.github/CODEOWNERS) file). +4. **Make the changes:** Fork and branch the repository. Do your work and open a [pull request](/en-US/docs/MDN/Community/Pull_requests) in the repository. [Reference the issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue) in the pull request description. Depending on the files you've updated in the pull request, a reviewer will be assigned to your pull request automatically. (Teams per topic area are defined in the [CODEOWNERS](https://github.com/mdn/content/blob/main/.github/CODEOWNERS) file). After opening the pull request, if you find you no longer have the time to make changes or incorporate review feedback, let the team know as soon as possible in a comment in the pull request. This will help the team assign another interested contributor to complete the work on the pull request and close the linked issue. diff --git a/files/en-us/mdn/community/pull_requests/index.md b/files/en-us/mdn/community/pull_requests/index.md index 05761cfa36c65ac..bc75f4ffe3626e7 100644 --- a/files/en-us/mdn/community/pull_requests/index.md +++ b/files/en-us/mdn/community/pull_requests/index.md @@ -62,7 +62,7 @@ When you're ready to open a pull request, follow these guidelines: If a pull request becomes too large, the reviewer may close it and ask that you to submit pull requests for each logical set of changes that belong together. - **Add a description of the changes:** Provide as much context and rationale for the pull request as possible. - **Add the link to the issue you are closing:** In the pull request description, add 'Fixes' if it fully resolves the issue or 'Relates to' if it is a related issue. - More information about linking to issues in pull requests can be found in [GitHub docs](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword). + More information about linking to issues in pull requests can be found in [GitHub docs](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword). - **Add 'depends on'** with a link to a dependency if there are pull requests that must be merged first (e.g., code examples in other repositories). - **Accompany code example changes with content changes:** This is important to ensure that updated examples are served correctly. If you're making content changes that affect how examples are used, the related code examples should also be updated. diff --git a/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/index.md b/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/index.md index ef40b20e525dc55..39749671dba3630 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/index.md @@ -25,8 +25,8 @@ Each event corresponds to a particular stage in the navigation. The sequence of - Additionally: - `{{WebExtAPIRef("webNavigation.onCreatedNavigationTarget", "onCreatedNavigationTarget")}}` is fired before `onBeforeNavigate` if the browser needed to create a new tab or window for the navigation (for example, because the user opened a link in a new tab). - - {{WebExtAPIRef("webNavigation.onHistoryStateUpdated", "onHistoryStateUpdated")}} is fired if a page uses the [history API (2011)](http://diveintohtml5.info/history.html) to update the URL displayed in the browser's location bar. - - {{WebExtAPIRef("webNavigation.onReferenceFragmentUpdated", "onReferenceFragmentUpdated")}} is fired if the [fragment identifier](https://en.wikipedia.org/wiki/Fragment_identifier) for a page is changed. + - {{WebExtAPIRef("webNavigation.onHistoryStateUpdated", "onHistoryStateUpdated")}} is fired if a page uses the [history API](/en-US/docs/Web/API/History_API) to update the URL displayed in the browser's location bar. + - {{WebExtAPIRef("webNavigation.onReferenceFragmentUpdated", "onReferenceFragmentUpdated")}} is fired if the [fragment identifier](/en-US/docs/Web/URI/Fragment) for a page is changed. - {{WebExtAPIRef("webNavigation.onErrorOccurred", "onErrorOccurred")}} can be fired at any point. Each navigation is a URL transition in a particular browser frame. The browser frame is identified by a tab ID and a frame ID. The frame may be the top-level browsing context in the tab, or may be a nested browsing context implemented as an [iframe](/en-US/docs/Web/HTML/Element/iframe). @@ -70,7 +70,7 @@ To use this API you need to have the "webNavigation" [permission](/en-US/docs/Mo - {{WebExtAPIRef("webNavigation.onTabReplaced")}} - : Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab. - {{WebExtAPIRef("webNavigation.onHistoryStateUpdated")}} - - : Fired when the page used the [history API (2011)](http://diveintohtml5.info/history.html) to update the URL displayed in the browser's location bar. + - : Fired when the page used the [history API (2011)](/en-US/docs/Web/API/History_API) to update the URL displayed in the browser's location bar. ## Browser compatibility diff --git a/files/en-us/mozilla/add-ons/webextensions/user_interface/omnibox/index.md b/files/en-us/mozilla/add-ons/webextensions/user_interface/omnibox/index.md index 42247387afacd40..31c1a2708d6b5ed 100644 --- a/files/en-us/mozilla/add-ons/webextensions/user_interface/omnibox/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/user_interface/omnibox/index.md @@ -29,7 +29,7 @@ browser.omnibox.setDefaultSuggestion({ }); ``` -You can then add the code to provide the customized content by listening for {{WebExtAPIRef("omnibox.onInputStarted")}}, which is dispatched when the user has typed the keyword and a space, and {{WebExtAPIRef("omnibox.onInputChanged")}}, which is dispatched whenever the user updates the address bar entry. You can then populate the suggestions, in this case building a [search of mozilla-central](https://searchfox.org/mozilla-central) using the term entered by the user: +You can then add the code to provide the customized content by listening for {{WebExtAPIRef("omnibox.onInputStarted")}}, which is dispatched when the user has typed the keyword and a space, and {{WebExtAPIRef("omnibox.onInputChanged")}}, which is dispatched whenever the user updates the address bar entry. You can then populate the suggestions, in this case building a [search of mozilla-central](https://searchfox.org/mozilla-central/search) using the term entered by the user: ```js browser.omnibox.onInputChanged.addListener((text, addSuggestions) => { diff --git a/files/en-us/web/api/navigator/scheduling/index.md b/files/en-us/web/api/navigator/scheduling/index.md index 612e91b1d8c32a2..9d45a1438af8b82 100644 --- a/files/en-us/web/api/navigator/scheduling/index.md +++ b/files/en-us/web/api/navigator/scheduling/index.md @@ -34,7 +34,7 @@ See the {{domxref("Scheduling.isInputPending()")}} page for a full example. ## See also - {{domxref("Scheduler")}} interface -- {{domxref("Prioritized_task_scheduling_api", "Prioritized Task Scheduling API")}} +- {{domxref("Prioritized_task_scheduling_api", "Prioritized Task Scheduling API", "", "nocode")}} - [Faster input events with Facebook's first browser API contribution](https://engineering.fb.com/2019/04/22/developer-tools/isinputpending-api/) on engineering.fb.com (2019) - [Better JS scheduling with isInputPending()](https://developer.chrome.com/docs/capabilities/web-apis/isinputpending) on developer.chrome.com (2020) - [Optimizing long tasks](https://web.dev/articles/optimize-long-tasks) on web.dev (2022) diff --git a/files/en-us/web/api/scheduling/index.md b/files/en-us/web/api/scheduling/index.md index 784a65ad7d307d1..a5f83624517bff2 100644 --- a/files/en-us/web/api/scheduling/index.md +++ b/files/en-us/web/api/scheduling/index.md @@ -34,7 +34,7 @@ See the {{domxref("Scheduling.isInputPending()")}} page for a full example. ## See also - {{domxref("Scheduler")}} interface -- {{domxref("Prioritized_task_scheduling_api", "Prioritized Task Scheduling API")}} +- {{domxref("Prioritized_task_scheduling_api", "Prioritized Task Scheduling API", "", "nocode")}} - [Faster input events with Facebook's first browser API contribution](https://engineering.fb.com/2019/04/22/developer-tools/isinputpending-api/) on engineering.fb.com (2019) - [Better JS scheduling with isInputPending()](https://developer.chrome.com/docs/capabilities/web-apis/isinputpending) on developer.chrome.com (2020) - [Optimizing long tasks](https://web.dev/articles/optimize-long-tasks) on web.dev (2022) diff --git a/files/en-us/web/api/scheduling/isinputpending/index.md b/files/en-us/web/api/scheduling/isinputpending/index.md index 01304501c5652b2..5e4f05b021196a4 100644 --- a/files/en-us/web/api/scheduling/isinputpending/index.md +++ b/files/en-us/web/api/scheduling/isinputpending/index.md @@ -80,7 +80,7 @@ This allows you to avoid blocking the main thread when the user is actively inte ## See also - {{domxref("Scheduler")}} interface -- {{domxref("Prioritized_task_scheduling_api", "Prioritized Task Scheduling API")}} +- {{domxref("Prioritized_task_scheduling_api", "Prioritized Task Scheduling API", "", "nocode")}} - [Faster input events with Facebook's first browser API contribution](https://engineering.fb.com/2019/04/22/developer-tools/isinputpending-api/) on engineering.fb.com (2019) - [Better JS scheduling with isInputPending()](https://developer.chrome.com/docs/capabilities/web-apis/isinputpending) on developer.chrome.com (2020) - [Optimizing long tasks](https://web.dev/articles/optimize-long-tasks#yield_only_when_necessary) on web.dev (2022) From 1c634730f5fe7ec557cabe2993eb87bc22567744 Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Fri, 27 Sep 2024 18:08:45 +0200 Subject: [PATCH 05/18] Add form attribute to MathML element (#36033) * Add form attribute to MathML element * Apply suggestions from code review Co-authored-by: Joshua Chen * Sort attributes list * Make space an example --------- Co-authored-by: Joshua Chen --- files/en-us/web/mathml/element/mo/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/en-us/web/mathml/element/mo/index.md b/files/en-us/web/mathml/element/mo/index.md index fa44027efb45261..1836e3a5efe96cb 100644 --- a/files/en-us/web/mathml/element/mo/index.md +++ b/files/en-us/web/mathml/element/mo/index.md @@ -17,6 +17,11 @@ In addition to the [global MathML attributes](/en-US/docs/Web/MathML/Global_attr - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator should be treated as an accent when used as an [under](/en-US/docs/Web/MathML/Element/munder)- or [overscript](/en-US/docs/Web/MathML/Element/mover) (i.e. drawn bigger and closer to the base expression). - `fence` - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator is a fence (such as parentheses). There is no visual effect for this attribute. +- `form` + - : An [enumerated](/en-US/docs/Glossary/Enumerated) attribute specifying how the operator is to be presented. For example, depending on the value, a different amount of space might be rendered on either side of the operator. It can have one of the following values: + - `prefix`: The operator appears before its operands. For example, in the expression `+ a`, the `+` is a prefix operator. + - `infix`: The operator appears between its operands. In the expression `a + b`, the `+` is an infix operator. + - `postfix`: The operator appears after its operands. For example, in the expression `a +`, the `+` is a postfix operator. - `largeop` - : A [``](/en-US/docs/Web/MathML/Values#mathml-specific_types) indicating whether the operator should be drawn bigger when [`math-style`](/en-US/docs/Web/CSS/math-style) is set to `normal`. - `lspace` From 643fa96e963ecaf2959cca5ddb573751a3efafac Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Fri, 27 Sep 2024 13:45:09 -0700 Subject: [PATCH 06/18] Intl resolved options order correction, normalize description (#36056) * Added `"languageDisplay"` to `resolvedOptions()` of `Intl.DisplayNames` objects * Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Reordered `Intl.NumberFormat` `resolvedOptions` to reflect spec order. * Reordered `resolvedOptions` properties for `Intl.PluralRules` to reflect spec order * fixup! Added `"languageDisplay"` to `resolvedOptions()` of `Intl.DisplayNames` objects * fixup! Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Standardize format, first three * Fixes * Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Reordered `Intl.NumberFormat` `resolvedOptions` to reflect spec order. * Reordered `resolvedOptions` properties for `Intl.PluralRules` to reflect spec order * fixup! Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Fix others * numberformat --------- Co-authored-by: Joshua Chen --- .../intl/collator/resolvedoptions/index.md | 36 +++---- .../datetimeformat/datetimeformat/index.md | 2 +- .../datetimeformat/resolvedoptions/index.md | 38 ++++---- .../displaynames/resolvedoptions/index.md | 34 ++----- .../durationformat/resolvedoptions/index.md | 62 ++---------- .../intl/listformat/resolvedoptions/index.md | 26 ++--- .../intl/numberformat/numberformat/index.md | 13 ++- .../numberformat/resolvedoptions/index.md | 96 +++++++------------ .../intl/pluralrules/resolvedoptions/index.md | 47 ++++----- .../resolvedoptions/index.md | 27 ++---- .../intl/segmenter/resolvedoptions/index.md | 17 +--- 11 files changed, 132 insertions(+), 266 deletions(-) diff --git a/files/en-us/web/javascript/reference/global_objects/intl/collator/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/collator/resolvedoptions/index.md index 6845d09862c7f43..35d47fcf7def884 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/collator/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/collator/resolvedoptions/index.md @@ -7,8 +7,7 @@ browser-compat: javascript.builtins.Intl.Collator.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.Collator")}} instances returns a new object with properties reflecting the locale and collation options -computed during initialization of this collator object. +The **`resolvedOptions()`** method of {{jsxref("Intl.Collator")}} instances returns a new object with properties reflecting the options computed during initialization of this `Collator` object. {{EmbedInteractiveExample("pages/js/intl-collator-prototype-resolvedoptions.html")}} @@ -24,29 +23,22 @@ None. ### Return value -A new object with properties reflecting the locale and collation options computed -during the initialization of the given {{jsxref("Intl.Collator")}} object. - -## Description - -The resulting object has the following properties: +A new object with properties reflecting the options computed during the initialization of this `Collator` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. If any Unicode extension - values were requested in the input BCP 47 language tag that led to this locale, - the key-value pairs that were requested and are supported for this locale are - included in `locale`. -- `usage`, `sensitivity`, `ignorePunctuation` - - : The values provided for these properties in the `options` argument or - filled in as defaults. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. Only the `co`, `kn`, and `kf` Unicode extension keys, if requested and supported, may be included in the output. +- `usage` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"sort"` or `"search"`. The default is `"sort"`. +- `sensitivity` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"base"`, `"accent"`, `"case"`, or `"variant"`. The default is `"variant"` for usage `"sort"`; it's locale dependent for usage `"search"`. +- `ignorePunctuation` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is a boolean. The default is `true` for Thai (`th`) and `false` for all other languages. - `collation` - - : The value requested using the Unicode extension key `"co"`, if it is - supported for `locale`, or `"default"`. -- `numeric`, `caseFirst` - - : The values requested for these properties in the `options` argument or - using the Unicode extension keys `"kn"` and `"kf"` or filled - in as defaults. If the implementation does not support these properties, they are - omitted. + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"co"`, with default filled in as needed. It is a supported [collation type](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations#supported_collation_types) for this locale. The default is `"default"`. +- `numeric` + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"kn"`, with default filled in as needed. It is a boolean. The default is `false`. If the implementation does not support this Unicode extension key, this property is omitted. +- `caseFirst` + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"kf"`, with default filled in as needed. It is either `"upper"`, `"lower"`, or `"false"`. The default is `"false"`. If the implementation does not support this Unicode extension key, this property is omitted. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/datetimeformat/index.md b/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/datetimeformat/index.md index 6668df37b7a6f70..c646588331233ac 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/datetimeformat/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/datetimeformat/index.md @@ -31,7 +31,7 @@ Intl.DateTimeFormat(locales, options) - : A string with a BCP 47 language tag or an {{jsxref("Intl.Locale")}} instance, or an array of such locale identifiers. The runtime's default locale is used when `undefined` is passed or when none of the specified locale identifiers is supported. For the general form and interpretation of the `locales` argument, see [the parameter description on the `Intl` main page](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). - The following Unicode extension key is allowed: + The following Unicode extension keys are allowed: - `nu` - : See [`numberingSystem`](#numberingsystem). diff --git a/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/resolvedoptions/index.md index 1ac3c4ece7c1c92..e78b7f64ce155a0 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/datetimeformat/resolvedoptions/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Intl.DateTimeFormat.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.DateTimeFormat")}} instances returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this `Intl.DateTimeFormat` object. +The **`resolvedOptions()`** method of {{jsxref("Intl.DateTimeFormat")}} instances returns a new object with properties reflecting the options computed during initialization of this `DateTimeFormat` object. {{EmbedInteractiveExample("pages/js/intl-datetimeformat-prototype-resolvedoptions.html")}} @@ -23,33 +23,39 @@ None. ### Return value -A new object with properties reflecting the options computed during the initialization of the given {{jsxref("Intl.DateTimeFormat")}} object. The object has the following properties, in the order they are listed: +A new object with properties reflecting the options computed during the initialization of this `DateTimeFormat` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. Only the `ca`, `hc`, and `nu` Unicode extension keys may be included in the output. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. Only the `ca`, `hc`, and `nu` Unicode extension keys, if requested, may be included in the output. - `calendar` - - : One of the [supported calendar types](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars#supported_calendar_types), reflecting the value provided for this property in the `options` argument or the `ca` Unicode extension key. The default is locale dependent. + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"ca"`, with default filled in as needed. It is a supported [calendar type](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars#supported_calendar_types) for this locale. The default is locale dependent. - `numberingSystem` - - : One of the [supported numbering system types](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems#supported_numbering_system_types), reflecting the value provided for this property in the `options` argument or the `nu` Unicode extension key. The default is locale dependent. + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"nu"`, with default filled in as needed. It is a supported [numbering system](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems#supported_numbering_system_types) for this locale. The default is locale dependent. - `timeZone` - - : One of the [IANA time zone names](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones), reflecting the value provided for this property in the `options` argument. The default is the runtime's default time zone; should never be `undefined`. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is a canonicalized [IANA time zone name](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones). The default is the runtime's default time zone. > [!NOTE] > While the IANA database changes from time to time, the Unicode CLDR database (which browsers use) keeps old time zone names for stability purposes. All browsers canonicalize time zone names, but in different directions. For example, `new Intl.DateTimeFormat("en-US", { timeZone: "Europe/Kiev" }).resolvedOptions().timeZone` and `new Intl.DateTimeFormat("en-US", { timeZone: "Europe/Kyiv" }).resolvedOptions().timeZone` will return the same string in the same browser, but maybe different strings in different browsers. See {{jsxref("Intl/Locale/getTimeZones", "Intl.Locale.prototype.getTimeZones")}} for more information. -- `hourCycle` - - : The value provided for this property in the `options` argument, or provided in the Unicode extension key `"hc"`, with default filled in as needed. Only present if the `options` argument included `hour` or `timeStyle`. -- `hour12` - - : The value provided for this property in the `options` argument, or computed from the `hourCycle` property. Only present if the `options` argument included `hour` or `timeStyle`. -- `weekday`, `era`, `year`, `month`, `day`, `dayPeriod`, `hour`, `minute`, `second`, `fractionalSecondDigits`, `timeZoneName` - - : The values resulting from format matching between the corresponding properties in the `options` argument and the available combinations and representations for date-time formatting in the selected locale. Some of these properties may not be present, indicating that the corresponding components will not be represented in formatted output. If the `dateStyle` or `timeStyle` shortcuts were used in `options`, these individual component properties will never be present. -- `dateStyle`, `timeStyle` - - : The values provided for these properties in the `options` argument, if any. +- `hourCycle` {{optional_inline}} + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"hc"`, with default filled in as needed. If `hour12` was provided in the `options`, then that overrides other `hourCycle` settings. It is only present if the resolved options also include `hour` or `timeStyle`. It is either `"h11"`, `"h12"`, `"h23"`, or `"h24"`. The default is locale dependent, although `"h24"` is never a default. +- `hour12` {{optional_inline}} + - : Calculated from `hourCycle`. It is only present if the resolved options also include `hour` or `timeStyle`. It is `true` if `hourCycle` is `"h11"` or `"h12"`, and `false` if `hourCycle` is `"h23"` or `"h24"`. +- `weekday`, `era`, `year`, `month`, `day`, `dayPeriod`, `hour`, `minute`, `second`, `fractionalSecondDigits`, `timeZoneName` {{optional_inline}} -## Description + - : The values resulting from format matching between the corresponding properties in the `options` argument and the available combinations and representations for date-time formatting in the selected locale. Some of these properties may not be present, indicating that the corresponding components will not be represented in formatted output. `weekday`, `era`, and `dayPeriod` are either `"narrow"`, `"short"`, or `"long"`; `year`, `day`, `hour`, `minute`, and `second` are either `"numeric"`, `"2-digit"`, or `"narrow"`; `month` is either `"numeric"`, `"2-digit"`, `"narrow"`, `"short"`, or `"long"`; `fractionalSecondDigits` is either `1`, `2`, or `3`; `timeZoneName` is either `"short"`, `"long"`, `"shortOffset"`, `"longOffset"`, `"shortGeneric"`, or `"longGeneric"`. -Although `dateStyle` and `timeStyle` are shortcuts for individual date and time component styles, the exact (locale dependent) component styles they resolve to are not included in the resolved options. This ensures the result of `resolvedOptions()` can be passed directly to the `Intl.DateTimeFormat()` constructor (because an `options` object with both `dateStyle` or `timeStyle` and individual date or time component styles is not valid). + If these properties were requested in `options`, the constructor prevents `dateStyle` and `timeStyle` from being specified, so the below group will never be present. + +- `dateStyle`, `timeStyle` {{optional_inline}} + + - : The values provided for these properties in the `options` argument. They are either `"full"`, `"long"`, `"medium"`, `"short"`, or `"none"`. Some of these properties may not be present, indicating that the corresponding components will not be represented in formatted output. + + If these properties were requested in `options`, the constructor prevents individual date time component options from being specified, so the above group will never be present. + + > [!NOTE] + > Although `dateStyle` and `timeStyle` are shortcuts for individual date and time component styles, the exact (locale dependent) component styles they resolve to are not included in the resolved options. This ensures the result of `resolvedOptions()` can be passed directly to the `Intl.DateTimeFormat()` constructor (because an `options` object with both `dateStyle` or `timeStyle` and individual date or time component styles is not valid). ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md index ad160b7a853cebc..22ebfa35f591b32 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/displaynames/resolvedoptions/index.md @@ -7,10 +7,7 @@ browser-compat: javascript.builtins.Intl.DisplayNames.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.DisplayNames")}} instances -returns a new object with properties reflecting the locale and style formatting -options computed during the construction of this `Intl.DisplayNames` -object. +The **`resolvedOptions()`** method of {{jsxref("Intl.DisplayNames")}} instances returns a new object with properties reflecting the options computed during initialization of this `DisplayNames` object. ## Syntax @@ -24,35 +21,18 @@ None. ### Return value -An object with properties reflecting the locale and formatting options computed during -the construction of the given {{jsxref("Intl.DisplayNames")}} object. - -## Description - -The object returned by `resolvedOptions()` has the following properties: +A new object with properties reflecting the options computed during the initialization of this `DisplayNames` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. If any Unicode extension - values were requested in the input BCP 47 language tag that led to this locale, - the key-value pairs that were requested and are supported for this locale are - included in `locale`. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. No Unicode extension key will be included in the output. - `style` - - : The value provided for this property in the `options` argument of the - constructor or the default value (`"long"`). Its value is either - `"long"`, `"short"`, or `"narrow"`. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"narrow"`, `"short"`, or `"long"`. The default is `"long"`. - `type` - - : The value provided for this property in the `options` argument of the - constructor or the default value (`"language"`). Its value is either - `"language"`, `"region"`, `"script"`, or - `"currency"`. + - : The value provided for this property in the `options` argument. It is either `"language"`, `"region"`, `"script"`, `"currency"`, `"calendar"`, or `"dateTimeField"`. It is required so there is no default. - `fallback` - - : The value provided for this property in the options argument of the constructor or - the default value (`"code"`). Its value is either `"code"` - or `"none"`. + - : The value provided for this property in the `options` argument. It is either `"code"` or `"none"`. The default is `"code"`. - `languageDisplay` - - : The value provided for this property in the options argument of the constructor or - the default value (`"dialect"`). Its value is either `"dialect"` - or `"standard"`. + - : The value provided for this property in the `options` argument. It is either `"dialect"` or `"standard"`. The default is `"dialect"`. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/durationformat/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/durationformat/resolvedoptions/index.md index 45f853b1344e586..11fe6e2f804d0a5 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/durationformat/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/durationformat/resolvedoptions/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Intl.DurationFormat.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.DurationFormat")}} instances returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this {{jsxref("Intl.DurationFormat")}} object. +The **`resolvedOptions()`** method of {{jsxref("Intl.DurationFormat")}} instances returns a new object with properties reflecting the options computed during initialization of this `DurationFormat` object. ## Syntax @@ -21,60 +21,18 @@ None. ### Return value -A new object with properties reflecting the locale and date and time formatting options computed during the initialization of the given {{jsxref("Intl.DateTimeFormat")}} object. - -## Description - -The resulting object has the following properties: +A new object with properties reflecting the options computed during the initialization of this `DurationFormat` object. The object has the following properties, in the order they are listed: - `locale` - - : The [BCP 47 language tag](https://datatracker.ietf.org/doc/html/rfc5646) for the locale used. If any Unicode extension values were requested in the input BCP 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in `locale`. -- `style` - - : One of the strings `"long"`, `"short"`, `"narrow"`, or `"digital"` identifying the duration formatting style used. -- `years` - - : One of the strings `"long"`, `"short"`, or `"narrow"` identifying the formatting style used for the `years` field. -- `yearsDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `years` field. -- `months` - - : One of the strings `"long"`, `"short"`, `and "narrow"` identifying the formatting style used for the `months` field. -- `monthsDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `months` field. -- `weeks` - - : One of the strings `"long"`, `"short"`, `and "narrow"` identifying the formatting style used for the `weeks` field. -- `weeksDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `weeks` field. -- `days` - - : One of the strings `"long"`, `"short"`, and `"narrow"` identifying the formatting style used for the `days` field. -- `daysDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `days` field. -- `hours` - - : One of the strings `"long"`, `"short"`, `"narrow"`, `"2-digit"`, or `"numeric"` identifying the formatting style used for the `hours` field. -- `hoursDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `hours` field. -- `minutes` - - : One of the strings `"long"`, `"short"`, `"narrow"`, `"2-digit"`, or `"numeric"` identifying the formatting style used for the `minutes` field. -- `minutesDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `minutes` field. -- `seconds` - - : One of the strings `"long"`, `"short"`, `"narrow"`, `"2-digit"`, or `"numeric"` identifying the formatting style used for the `seconds` field. -- `secondsDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `seconds` field. -- `milliseconds` - - : One of the strings `"long"`, `"short"`, `"narrow"`, or `"numeric"` identifying the formatting style used for the `milliseconds` field. -- `millisecondsDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `millisecondsDisplay` field. -- `microseconds` - - : One of the strings `"long"`, `"short"`, `"narrow"`, or `"numeric"` identifying the formatting style used for the `microseconds` field. -- `microsecondsDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `microsecondsDisplay` field. -- `nanoseconds` - - : One of the strings `"long"`, `"short"`, `"narrow"`, or `"numeric"` identifying the formatting style used for the `nanoseconds` field. -- `nanosecondsDisplay` - - : One of the strings `"auto"` or `"always"` identifying when to display the `nanosecondsDisplay` field. -- `fractionalDigits` - - : A number, identifying the number of fractional digits used with numeric styles. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. Only the `nu` Unicode extension key, if requested, may be included in the output. - `numberingSystem` - - : The value provided for this property in the options argument, if present, or the value requested using the Unicode extension key `nu` or filled in as a default. + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"nu"`, with default filled in as needed. It is a supported [numbering system](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems#supported_numbering_system_types) for this locale. The default is locale dependent. +- `style` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"long"`, `"short"`, `"narrow"`, or `"digital"`. The default is `"short"`. +- `years`, `yearsDisplay`, `months`, `monthsDisplay`, `weeks`, `weeksDisplay`, `days`, `daysDisplay`, `hours`, `hoursDisplay`, `minutes`, `minutesDisplay`, `seconds`, `secondsDisplay`, `milliseconds`, `millisecondsDisplay`, `nanoseconds`, `nanosecondsDisplay` + - : The values provided for these properties in the `options` argument, with defaults filled in as needed. For the valid values and defaults for each, see the [`options`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/DurationFormat#options) argument of the constructor. +- `fractionalDigits` {{optional_inline}} + - : The value provided for this property in the `options` argument. It is only present if specified in `options`. It is an integer from 0 to 9, inclusive. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/listformat/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/listformat/resolvedoptions/index.md index 3599eaaab2aafb8..cc1a98605d5c4c1 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/listformat/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/listformat/resolvedoptions/index.md @@ -7,9 +7,7 @@ browser-compat: javascript.builtins.Intl.ListFormat.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.ListFormat")}} instances -returns a new object with properties reflecting the locale and style formatting -options computed during the construction of this `Intl.ListFormat` object. +The **`resolvedOptions()`** method of {{jsxref("Intl.ListFormat")}} instances returns a new object with properties reflecting the options computed during initialization of this `ListFormat` object. {{EmbedInteractiveExample("pages/js/intl-listformat-prototype-resolvedoptions.html")}} @@ -25,26 +23,14 @@ None. ### Return value -An object with properties reflecting the locale and formatting options computed during -the construction of the given {{jsxref("Intl.ListFormat")}} object. - -## Description - -The object returned by `resolvedOptions()` has the following properties: +A new object with properties reflecting the options computed during the initialization of this `ListFormat` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. If any Unicode extension - values were requested in the input BCP 47 language tag that led to this locale, - the key-value pairs that were requested and are supported for this locale are - included in `locale`. -- `style` - - : The value provided for this property in the `options` argument of the - constructor or the default value (`"long"`). Its value is either - `"long"`, `"short"`, or `"narrow"`. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. No Unicode extension key will be included in the output. - `type` - - : The value provided for this property in the `options` argument of the - constructor or the default value (`"conjunction"`). Its value is either - `"conjunction"`, `"disjunction"`, or `"unit"`. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"conjunction"`, `"disjunction"`, or `"unit"`. The default is `"conjunction"`. +- `style` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"long"`, `"short"`, or `"narrow"`. The default is `"long"`. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.md b/files/en-us/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.md index 0880fa250c61bde..3c9c85c560f90f1 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.md @@ -65,7 +65,7 @@ Depending on the `style` used, some of them may be ignored, and others may be re - `"unit"` - : For unit formatting. - `currency` - - : The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as `"USD"` for the US dollar, `"EUR"` for the euro, or `"CNY"` for the Chinese RMB — see the [Current currency & funds code list](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes). There is no default value; if the `style` is `"currency"`, the `currency` property must be provided. + - : The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as `"USD"` for the US dollar, `"EUR"` for the euro, or `"CNY"` for the Chinese RMB — see the [Current currency & funds code list](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes). There is no default value; if the `style` is `"currency"`, the `currency` property must be provided. It is normalized to uppercase. - `currencyDisplay` - : How to display the currency in currency formatting. - `"code"` @@ -104,7 +104,12 @@ The following properties are also supported by {{jsxref("Intl.PluralRules")}}. - `maximumSignificantDigits` - : The maximum number of significant digits to use. Possible values are from `1` to `21`; the default is `21`. -The above properties fall into two groups: `minimumIntegerDigits`, `minimumFractionDigits`, and `maximumFractionDigits` in one group, `minimumSignificantDigits` and `maximumSignificantDigits` in the other. If properties from both groups are specified, conflicts in the resulting display format are resolved based on the value of the [`roundingPriority`](#roundingpriority) property. +For the four options above (the `FractionDigits` and `SignificantDigits` options), we mentioned their defaults; however, these defaults are _not unconditionally applied_. They are only applied when the property is actually going to be used, which depends on the [`roundingPriority`](#roundingpriority) and [`notation`](#notation) settings. Specifically: + +- If `roundingPriority` is not `"auto"`, then all four options apply. +- If `roundingPriority` is `"auto"` and at least one `SignificantDigits` option is set, then the `SignificantDigits` options apply and the `FractionDigits` options are ignored. +- If `roundingPriority` is `"auto"`, and either at least one `FractionDigits` option is set or `notation` is not `"compact"`, then the `FractionDigits` options apply and the `SignificantDigits` options are ignored. +- If `roundingPriority` is `"auto"`, `notation` is `"compact"`, and none of the four options are set, then they are set to `{ minimumFractionDigits: 0, maximumFractionDigits: 0, minimumSignificantDigits: 1, maximumSignificantDigits: 2 }`, regardless of the defaults mentioned above, and `roundingPriority` is set to `"morePrecision"`. - `roundingPriority` @@ -118,11 +123,13 @@ The above properties fall into two groups: `minimumIntegerDigits`, `minimumFract - `"lessPrecision"` - : The result from the property that results in less precision is used. + The value `"auto"` is normalized to `"morePrecision"` if `notation` is `"compact"` and none of the four "FractionDigits"/"SignificantDigits" options are set. + Note that for values other than `auto` the result with more precision is calculated from the [`maximumSignificantDigits`](#minimumsignificantdigits) and [`maximumFractionDigits`](#maximumfractiondigits) (minimum fractional and significant digit settings are ignored). - `roundingIncrement` - - : Indicates the increment at which rounding should take place relative to the calculated rounding magnitude. Possible values are `1`, `2`, `5`, `10`, `20`, `25`, `50`, `100`, `200`, `250`, `500`, `1000`, `2000`, `2500`, and `5000`. It cannot be mixed with significant-digits rounding or any setting of `roundingPriority` other than `auto`. + - : Indicates the increment at which rounding should take place relative to the calculated rounding magnitude. Possible values are `1`, `2`, `5`, `10`, `20`, `25`, `50`, `100`, `200`, `250`, `500`, `1000`, `2000`, `2500`, and `5000`; the default is `1`. It cannot be mixed with significant-digits rounding or any setting of `roundingPriority` other than `auto`. - `roundingMode` diff --git a/files/en-us/web/javascript/reference/global_objects/intl/numberformat/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/numberformat/resolvedoptions/index.md index 0a699f275190783..c82a4fc9f737ac9 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/numberformat/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/numberformat/resolvedoptions/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Intl.NumberFormat.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.NumberFormat")}} instances returns a new object with properties reflecting the [locale and number formatting options](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters) computed during initialization of this `Intl.NumberFormat` object. +The **`resolvedOptions()`** method of {{jsxref("Intl.NumberFormat")}} instances returns a new object with properties reflecting the options computed during initialization of this `NumberFormat` object. {{EmbedInteractiveExample("pages/js/intl-numberformat-prototype-resolvedoptions.html")}} @@ -23,72 +23,46 @@ None. ### Return value -A new object with properties reflecting the [locale and number formatting options](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters) computed during the construction of the given {{jsxref("Intl.NumberFormat")}} object. - -The resulting object has the following properties: - -- `compactDisplay` - - : Whether to use short or long form when using compact notation. - This is the value provided in the [`options.compactDisplay`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#compactdisplay) argument of the constructor, or the default value: `"short"`. - The value is only present if `notation` is set to "compact", and otherwise is `undefined`. -- `currency` - - : The currency to use in currency formatting. - The value is defined if `style` is `"currency"`, and is otherwise `undefined`. - This is the value provided in the [`options.currency`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currency) argument of the constructor. -- `currencyDisplay` - - : The display format for the currency, such as a symbol, or currency code. - The value is defined if `style` is `"currency"`, and otherwise is `undefined`. - This is the value provided in the [`options.currencyDisplay`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay) argument of the constructor, or the default value: `"symbol"`. -- `currencySign` - - : The method used to specify the sign of the currency value: `standard` or `accounting`. - The value is present if `style` is `"currency"`, and otherwise is `undefined`. - This is the value provided in the [`options.currencySign`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencysign) argument of the constructor, or the default value: `"standard"`. +A new object with properties reflecting the options computed during the initialization of this `NumberFormat` object. The object has the following properties, in the order they are listed: + - `locale` - - : The BCP 47 language tag for the locale that was actually used. - Matches one of the locales that were requested in the constructor [`locales`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locales). -- `notation` - - : The formatting that should be applied to the number, such as `standard` or `engineering`. - This is the value provided in the [`options.notation`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#notation) argument of the constructor, or the default value: `"standard"`. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. Only the `nu` Unicode extension key, if requested, may be included in the output. - `numberingSystem` - - : The numbering system. - This is the value provided in the [`options.numberingSystem`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#numberingsystem) argument of the constructor, if present, or the value set using the Unicode extension key [`nu`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#nu), or filled in as a default. + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"nu"`, with default filled in as needed. It is a supported [numbering system](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems#supported_numbering_system_types) for this locale. The default is locale dependent. +- `style` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"decimal"`, `"percent"`, `"currency"`, or `"unit"`. The default is `"decimal"`. +- `currency` {{optional_inline}} + - : The value provided for this property in the `options` argument. It is only present if `style` is `"currency"`. It is an [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes). It is required if `style` is `"currency"` so there is no default. +- `currencyDisplay` {{optional_inline}} + - : The value provided for this property in the `options` argument, with default filled in as needed. It is only present if `style` is `"currency"`. It is either `"code"`, `"symbol"`, `"narrowSymbol"`, or `"name"`. The default is `"symbol"`. +- `currencySign` {{optional_inline}} + - : The value provided for this property in the `options` argument, with default filled in as needed. It is only present if `style` is `"currency"`. It is either `"standard"` or `"accounting"`. The default is `"standard"`. +- `unit` {{optional_inline}} + - : The value provided for this property in the `options` argument. It is only present if `style` is `"unit"`. It is a [sanctioned unit identifier](https://tc39.es/ecma402/#table-sanctioned-single-unit-identifiers) from the [full CLDR list](https://github.com/unicode-org/cldr/blob/main/common/validity/unit.xml). It is required if `style` is `"unit"` so there is no default. +- `unitDisplay` {{optional_inline}} + - : The value provided for this property in the `options` argument, with default filled in as needed. It is only present if `style` is `"unit"`. It is either `"short"`, `"narrow"`, or `"long"`. The default is `"short"`. +- `minimumIntegerDigits` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is an integer between `1` and `21`. The default is `1`. +- `minimumFractionDigits`, `maximumFractionDigits` {{optional_inline}} + - : The value provided for these properties in the `options` argument, with defaults filled in as needed. They are only present if necessary; see [digit options](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#digit_options). It is an integer between `0` and `100`. +- `minimumSignificantDigits`, `maximumSignificantDigits` {{optional_inline}} + - : The value provided for these properties in the `options` argument, with defaults filled in as needed. They are only present if necessary; see [digit options](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#digit_options). It is an integer between `1` and `21`. +- `useGrouping` + - : The value provided for this property in the `options` argument, with default filled in as needed, and with some values normalized. It is either `"always"`, `"auto"`, `"min2"`, or the boolean `false`. The default is `"min2"` if `notation` is `"compact"`, and `"auto"` otherwise. +- `notation` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"standard"`, `"scientific"`, `"engineering"`, or `"compact"`. The default is `"standard"`. +- `compactDisplay` {{optional_inline}} + - : The value provided for this property in the `options` argument, with default filled in as needed. It is only present if `notation` is `"compact"`. It is either `"short"` or `"long"`. The default is `"short"`. +- `signDisplay` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"auto"`, `"always"`, `"exceptZero"`, `"negative"`, or `"never"`. The default is `"auto"`. - `roundingIncrement` - - : The rounding-increment precision (the increment used when rounding numbers). - This is the value specified in the [`options.roundingIncrement`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingincrement) argument in the constructor. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is one of `1`, `2`, `5`, `10`, `20`, `25`, `50`, `100`, `200`, `250`, `500`, `1000`, `2000`, `2500`, and `5000`. The default is `1`. - `roundingMode` - - : The rounding mode. - This is the value provided for the [`options.roundingMode`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingmode) argument in the constructor, or the default value: `halfExpand`. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is one of `"ceil"`, `"floor"`, `"expand"`, `"trunc"`, `"halfCeil"`, `"halfFloor"`, `"halfExpand"`, `"halfTrunc"`, and `"halfEven"`. The default is `"halfExpand"`. - `roundingPriority` - - : The priority for resolving rounding conflicts if both "FractionDigits" and "SignificantDigits" are specified. - This is the value provided for the [`options.roundingPriority`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingpriority) argument in the constructor, or the default value: `auto`. -- `signDisplay` - - : Whether or not to display the positive/negative sign. - This is the value specified in the [`options.signDisplay`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#signdisplay) argument in the constructor, or the default value: `"auto"`. -- `unit` - - : The unit to use in unit formatting. - The value is only present if `style` is `"unit"`, and is otherwise `undefined`. - This is the value specified in the [`options.unit`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#unit) argument in the constructor. -- `unitDisplay` - - - : The display format to use for units in unit formatting, such as "long", "short" or "narrow". - The value is only present if `style` is `"unit"`, and is otherwise `undefined`. - This is the value specified in the [`options.unitDisplay`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#unitdisplay) argument in the constructor, or the default value: `short`. - -- `useGrouping` - - : Whether or not to use grouping separators to indicate "thousands", "millions" and son on. - This is the value specified in the [`options.useGrouping`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#usegrouping) argument in the constructor, or the default value: `"auto"`. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"auto"`, `"morePrecision"`, or `"lessPrecision"`. The default is `"auto"`. - `trailingZeroDisplay` - - : The strategy for displaying trailing zeros on whole numbers. - This is the value specified in the [`options.trailingZeroDisplay`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#trailingzerodisplay) argument in the constructor, or the default value: `"auto"`. - -Only one of the following two groups of properties is included: - -- `minimumIntegerDigits`, `minimumFractionDigits`, `maximumFractionDigits` - - : The values provided for these properties in the `options` argument or filled in as defaults. - These properties are present only if neither `minimumSignificantDigits` nor `maximumSignificantDigits` was provided in the `options` argument. -- `minimumSignificantDigits`, `maximumSignificantDigits` - - : The values provided for these properties in the `options` argument or filled in as defaults. - These properties are present only if at least one of them was provided in the `options` argument. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"auto"` or `"stripIfInteger"`. The default is `"auto"`. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/pluralrules/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/pluralrules/resolvedoptions/index.md index 78a88d0111a89a5..0c5451ada856994 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/pluralrules/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/pluralrules/resolvedoptions/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Intl.PluralRules.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.PluralRules")}} instances returns a new object with properties reflecting the locale and plural formatting options computed during initialization of this `Intl.PluralRules` object. +The **`resolvedOptions()`** method of {{jsxref("Intl.PluralRules")}} instances returns a new object with properties reflecting the options computed during initialization of this `PluralRules` object. {{EmbedInteractiveExample("pages/js/intl-pluralrules-prototype-resolvedoptions.html")}} @@ -23,39 +23,26 @@ None. ### Return value -A new object with properties reflecting the locale and plural formatting options computed during the initialization of the given {{jsxref("Intl.PluralRules")}} object. - -The object has the following properties: +A new object with properties reflecting the options computed during the initialization of this `PluralRules` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. If any Unicode extension values were requested in the input BCP 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in `locale`. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. No Unicode extension key will be included in the output. +- `type` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"cardinal"` or `"ordinal"`. The default is `"cardinal"`. +- `minimumIntegerDigits`, `minimumFractionDigits`, `maximumFractionDigits` {{optional_inline}} + - : The value provided for these properties in the `options` argument, with defaults filled in as needed. These properties are present only if neither `minimumSignificantDigits` nor `maximumSignificantDigits` was provided in the `options` argument. +- `minimumSignificantDigits`, `maximumSignificantDigits` {{optional_inline}} + - : The value provided for these properties in the `options` argument, with defaults filled in as needed. These properties are present only if at least one of them was provided in the `options` argument. - `pluralCategories` - : An {{jsxref("Array")}} of plural categories used by the given locale, selected from the list `"zero"`, `"one"`, `"two"`, `"few"`, `"many"` and `"other"`. -- `type` - - - : The type used (`cardinal` or `ordinal`). - -- `roundingIncrement` {{experimental_inline}} - - : The rounding-increment precision (the increment used when rounding numbers). - This is the value specified in the `options.roundingIncrement` argument in the constructor. -- `roundingMode` {{experimental_inline}} - - : The rounding mode. - This is the value provided for the `options.roundingMode` argument in the constructor, or the default value: `halfExpand`. -- `roundingPriority` {{experimental_inline}} - - : The priority for resolving rounding conflicts if both "FractionDigits" and "SignificantDigits" are specified. - This is the value provided for the `options.roundingPriority` argument in the constructor, or the default value: `auto`. -- `trailingZeroDisplay` {{experimental_inline}} - - : The strategy for displaying trailing zeros on whole numbers. - This is the value specified in the `options.trailingZeroDisplay` argument in the constructor, or the default value: `"auto"`. - -Only one of the following two groups of properties is included: - -- `minimumIntegerDigits`, `minimumFractionDigits`, `maximumFractionDigits` - - : The values provided for these properties in the `options` argument or filled in as defaults. - These properties are present only if neither `minimumSignificantDigits` nor `maximumSignificantDigits` was provided in the `options` argument. -- `minimumSignificantDigits`, `maximumSignificantDigits` - - : The values provided for these properties in the `options` argument or filled in as defaults. - These properties are present only if at least one of them was provided in the `options` argument. +- `roundingIncrement` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is one of `1`, `2`, `5`, `10`, `20`, `25`, `50`, `100`, `200`, `250`, `500`, `1000`, `2000`, `2500`, and `5000`. The default is `1`. +- `roundingMode` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is one of `"ceil"`, `"floor"`, `"expand"`, `"trunc"`, `"halfCeil"`, `"halfFloor"`, `"halfExpand"`, `"halfTrunc"`, and `"halfEven"`. The default is `"halfExpand"`. +- `roundingPriority` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"auto"`, `"morePrecision"`, or `"lessPrecision"`. The default is `"auto"`. +- `trailingZeroDisplay` + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"auto"` or `"stripIfInteger"`. The default is `"auto"`. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/relativetimeformat/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/relativetimeformat/resolvedoptions/index.md index 2af4a504f18e408..437f8e7d3e3d3d6 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/relativetimeformat/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/relativetimeformat/resolvedoptions/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Intl.RelativeTimeFormat.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.RelativeTimeFormat")}} instances returns a new object with properties reflecting the locale and relative time formatting options computed during initialization of this `Intl.RelativeTimeFormat` object. +The **`resolvedOptions()`** method of {{jsxref("Intl.RelativeTimeFormat")}} instances returns a new object with properties reflecting the options computed during initialization of this `RelativeTimeFormat` object. {{EmbedInteractiveExample("pages/js/intl-relativetimeformat-prototype-resolvedoptions.html")}} @@ -23,31 +23,16 @@ None. ### Return value -A new object with properties reflecting the locale and number formatting options computed during the initialization of the given {{jsxref("Intl.RelativeTimeFormat")}} object. - -## Description - -The resulting object has the following properties: +A new object with properties reflecting the options computed during the initialization of this `RelativeTimeFormat` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. If any Unicode extension values were requested in the input BCP 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in `locale`. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. Only the `nu` Unicode extension key, if requested, may be included in the output. - `style` - - - : The length of the internationalized message. Possible values are: - - - `"long"` (default, e.g., `in 1 month`) - - `"short"` (e.g., `in 1 mo.`), - - or `"narrow"` (e.g., `in 1 mo.`). The narrow style could be similar to the short style for some locales. - + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"long"`, `"short"`, or `"narrow"`. The default is `"long"`. - `numeric` - - - : The format of output message. Possible values are: - - - `"always"` (default, e.g., `1 day ago`), - - or `"auto"` (e.g., `yesterday`). The `"auto"` value allows to not always have to use numeric values in the output. - + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"always"` or `"auto"`. The default is `"always"`. - `numberingSystem` - - : The value requested using the Unicode extension key `"nu"` or filled in as a default. + - : The value provided for this property in the `options` argument, or using the Unicode extension key `"nu"`, with default filled in as needed. It is a supported [numbering system](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems#supported_numbering_system_types) for this locale. The default is locale dependent. ## Examples diff --git a/files/en-us/web/javascript/reference/global_objects/intl/segmenter/resolvedoptions/index.md b/files/en-us/web/javascript/reference/global_objects/intl/segmenter/resolvedoptions/index.md index 06c431841524ffb..0606063cf4a7026 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/segmenter/resolvedoptions/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/segmenter/resolvedoptions/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Intl.Segmenter.resolvedOptions {{JSRef}} -The **`resolvedOptions()`** method of {{jsxref("Intl.Segmenter")}} instances returns a new object with properties reflecting the locale and granularity options computed during the initialization of this `Intl.Segmenter` object. +The **`resolvedOptions()`** method of {{jsxref("Intl.Segmenter")}} instances returns a new object with properties reflecting the options computed during initialization of this `Segmenter` object. {{EmbedInteractiveExample("pages/js/intl-segmenter-prototype-resolvedoptions.html")}} @@ -23,21 +23,12 @@ None. ### Return value -A new object with properties reflecting the locale and collation options computed -during the initialization of the given [`Intl.Segmenter`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter) object. - -## Description - -The resulting object has the following properties: +A new object with properties reflecting the options computed during the initialization of this `Segmenter` object. The object has the following properties, in the order they are listed: - `locale` - - : The BCP 47 language tag for the locale actually used. If any Unicode extension - values were requested in the input BCP 47 language tag that led to this locale, - the key-value pairs that were requested and are supported for this locale are - included in `locale`. + - : The BCP 47 language tag for the locale actually used, determined by the [locale negotiation](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) process. No Unicode extension key will be included in the output. - `granularity` - - : The value provided for this property in the `options` argument or filled - in as the default. + - : The value provided for this property in the `options` argument, with default filled in as needed. It is either `"grapheme"`, `"word"`, or `"sentence"`. The default is `"grapheme"`. ## Examples From 0813b7f6eb4aca4d2b7440a4644658495fa1f9d7 Mon Sep 17 00:00:00 2001 From: Karim Shalapy Date: Sat, 28 Sep 2024 05:22:21 +0300 Subject: [PATCH 07/18] Add notes describing media overflow (#36076) --- files/en-us/web/css/@media/overflow-block/index.md | 3 +++ files/en-us/web/css/@media/overflow-inline/index.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/files/en-us/web/css/@media/overflow-block/index.md b/files/en-us/web/css/@media/overflow-block/index.md index 53fc186e681d4c5..a3abdf5b6d410e4 100644 --- a/files/en-us/web/css/@media/overflow-block/index.md +++ b/files/en-us/web/css/@media/overflow-block/index.md @@ -9,6 +9,9 @@ browser-compat: css.at-rules.media.overflow-block The **`overflow-block`** [CSS](/en-US/docs/Web/CSS) [media feature](/en-US/docs/Web/CSS/@media#media_features) can be used to test how the output device handles content that overflows the initial [containing block](/en-US/docs/Web/CSS/Containing_block) along the block axis. +> [!NOTE] +> The `overflow-block` property does not determine whether overflow occurs; rather, it reveals the device's handling of such overflow. Typically, on screens in most browsers, the behavior will be "scroll": when content exceeds the available vertical space, the device allows you to scroll to access the overflowed content. + ## Syntax The `overflow-block` feature is specified as a keyword value chosen from the list below. diff --git a/files/en-us/web/css/@media/overflow-inline/index.md b/files/en-us/web/css/@media/overflow-inline/index.md index b2da61e5d4535e2..47a4f5552ad02cd 100644 --- a/files/en-us/web/css/@media/overflow-inline/index.md +++ b/files/en-us/web/css/@media/overflow-inline/index.md @@ -9,6 +9,9 @@ browser-compat: css.at-rules.media.overflow-inline The **`overflow-inline`** [CSS](/en-US/docs/Web/CSS) [media feature](/en-US/docs/Web/CSS/@media#media_features) can be used to test how the output device handles content that overflows the initial [containing block](/en-US/docs/Web/CSS/Containing_block) along the inline axis. +> [!NOTE] +> The `overflow-inline` property does not determine whether overflow occurs; rather, it reveals the device's handling of such overflow. Typically, on screens in most browsers, the behavior will be "scroll": when content exceeds the available horizontal space, the device allows you to scroll to access the overflowed content. + ## Syntax The `overflow-inline` feature is specified as a keyword value chosen from the list below. From 49cf48d75edd801ea870c848b913187b5c882798 Mon Sep 17 00:00:00 2001 From: Ragul <67683723+ragul1697@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:05:50 +0530 Subject: [PATCH 08/18] Fix: Typo in nth-last-child (#36074) Update index.md --- files/en-us/web/css/_colon_nth-last-child/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/css/_colon_nth-last-child/index.md b/files/en-us/web/css/_colon_nth-last-child/index.md index 0e6326bdbf6467b..c5e1627607b9067 100644 --- a/files/en-us/web/css/_colon_nth-last-child/index.md +++ b/files/en-us/web/css/_colon_nth-last-child/index.md @@ -237,7 +237,7 @@ li:nth-last-child(odd of .noted) { #### Result -Items with `class="noted"` have a think bottom border and items 1, 7, 14, and 20 have a solid background as they are the _odd_ list items with `class="noted"`. +Items with `class="noted"` have a thick bottom border and items 1, 7, 14, and 20 have a solid background as they are the _odd_ list items with `class="noted"`. {{EmbedLiveSample('of_selector_syntax_example', 550, 120)}} From 2b942f0d8f84641c233d701cb5d1f4e6c23120ff Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Sat, 28 Sep 2024 13:28:22 +0800 Subject: [PATCH 09/18] Add {{AvailableInWorkers}} for WebGL API (#35989) * add * add * add * add * add --- files/en-us/web/api/webgl2renderingcontext/beginquery/index.md | 2 +- .../api/webgl2renderingcontext/begintransformfeedback/index.md | 2 +- .../web/api/webgl2renderingcontext/bindbufferbase/index.md | 2 +- .../web/api/webgl2renderingcontext/bindbufferrange/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/bindsampler/index.md | 2 +- .../api/webgl2renderingcontext/bindtransformfeedback/index.md | 2 +- .../web/api/webgl2renderingcontext/bindvertexarray/index.md | 2 +- .../web/api/webgl2renderingcontext/blitframebuffer/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/bufferdata/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/buffersubdata/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/clearbuffer/index.md | 2 +- .../web/api/webgl2renderingcontext/clientwaitsync/index.md | 2 +- .../api/webgl2renderingcontext/compressedteximage3d/index.md | 2 +- .../api/webgl2renderingcontext/compressedtexsubimage3d/index.md | 2 +- .../web/api/webgl2renderingcontext/copybuffersubdata/index.md | 2 +- .../web/api/webgl2renderingcontext/copytexsubimage3d/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/createquery/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/createsampler/index.md | 2 +- .../api/webgl2renderingcontext/createtransformfeedback/index.md | 2 +- .../web/api/webgl2renderingcontext/createvertexarray/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/deletequery/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/deletesampler/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/deletesync/index.md | 2 +- .../api/webgl2renderingcontext/deletetransformfeedback/index.md | 2 +- .../web/api/webgl2renderingcontext/deletevertexarray/index.md | 2 +- .../web/api/webgl2renderingcontext/drawarraysinstanced/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/drawbuffers/index.md | 2 +- .../api/webgl2renderingcontext/drawelementsinstanced/index.md | 2 +- .../web/api/webgl2renderingcontext/drawrangeelements/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/endquery/index.md | 2 +- .../api/webgl2renderingcontext/endtransformfeedback/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/fencesync/index.md | 2 +- .../api/webgl2renderingcontext/framebuffertexturelayer/index.md | 2 +- .../webgl2renderingcontext/getactiveuniformblockname/index.md | 2 +- .../getactiveuniformblockparameter/index.md | 2 +- .../web/api/webgl2renderingcontext/getactiveuniforms/index.md | 2 +- .../web/api/webgl2renderingcontext/getbuffersubdata/index.md | 2 +- .../web/api/webgl2renderingcontext/getfragdatalocation/index.md | 2 +- .../web/api/webgl2renderingcontext/getindexedparameter/index.md | 2 +- .../webgl2renderingcontext/getinternalformatparameter/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/getquery/index.md | 2 +- .../web/api/webgl2renderingcontext/getqueryparameter/index.md | 2 +- .../web/api/webgl2renderingcontext/getsamplerparameter/index.md | 2 +- .../web/api/webgl2renderingcontext/getsyncparameter/index.md | 2 +- .../webgl2renderingcontext/gettransformfeedbackvarying/index.md | 2 +- .../api/webgl2renderingcontext/getuniformblockindex/index.md | 2 +- .../web/api/webgl2renderingcontext/getuniformindices/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/index.md | 2 +- .../api/webgl2renderingcontext/invalidateframebuffer/index.md | 2 +- .../webgl2renderingcontext/invalidatesubframebuffer/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/isquery/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/issampler/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/issync/index.md | 2 +- .../web/api/webgl2renderingcontext/istransformfeedback/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/isvertexarray/index.md | 2 +- .../api/webgl2renderingcontext/pausetransformfeedback/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/readbuffer/index.md | 2 +- .../renderbufferstoragemultisample/index.md | 2 +- .../api/webgl2renderingcontext/resumetransformfeedback/index.md | 2 +- .../web/api/webgl2renderingcontext/samplerparameter/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/teximage3d/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/texstorage2d/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/texstorage3d/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/texsubimage3d/index.md | 2 +- .../webgl2renderingcontext/transformfeedbackvaryings/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/uniform/index.md | 2 +- .../web/api/webgl2renderingcontext/uniformblockbinding/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/uniformmatrix/index.md | 2 +- .../web/api/webgl2renderingcontext/vertexattribdivisor/index.md | 2 +- .../en-us/web/api/webgl2renderingcontext/vertexattribi/index.md | 2 +- .../api/webgl2renderingcontext/vertexattribipointer/index.md | 2 +- files/en-us/web/api/webgl2renderingcontext/waitsync/index.md | 2 +- files/en-us/web/api/webgl_api/index.md | 2 +- files/en-us/web/api/webglactiveinfo/index.md | 2 +- files/en-us/web/api/webglactiveinfo/name/index.md | 2 +- files/en-us/web/api/webglactiveinfo/size/index.md | 2 +- files/en-us/web/api/webglactiveinfo/type/index.md | 2 +- files/en-us/web/api/webglbuffer/index.md | 2 +- files/en-us/web/api/webglcontextevent/index.md | 2 +- files/en-us/web/api/webglcontextevent/statusmessage/index.md | 2 +- .../en-us/web/api/webglcontextevent/webglcontextevent/index.md | 2 +- files/en-us/web/api/webglframebuffer/index.md | 2 +- files/en-us/web/api/webglobject/index.md | 2 +- files/en-us/web/api/webglprogram/index.md | 2 +- files/en-us/web/api/webglquery/index.md | 2 +- files/en-us/web/api/webglrenderbuffer/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/activetexture/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/attachshader/index.md | 2 +- .../web/api/webglrenderingcontext/bindattriblocation/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/bindbuffer/index.md | 2 +- .../web/api/webglrenderingcontext/bindframebuffer/index.md | 2 +- .../web/api/webglrenderingcontext/bindrenderbuffer/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/bindtexture/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/blendcolor/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/blendequation/index.md | 2 +- .../api/webglrenderingcontext/blendequationseparate/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/blendfunc/index.md | 2 +- .../web/api/webglrenderingcontext/blendfuncseparate/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/bufferdata/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/buffersubdata/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/canvas/index.md | 2 +- .../api/webglrenderingcontext/checkframebufferstatus/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/clear/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/clearcolor/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/cleardepth/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/clearstencil/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/colormask/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/compileshader/index.md | 2 +- .../web/api/webglrenderingcontext/compressedteximage2d/index.md | 2 +- .../api/webglrenderingcontext/compressedtexsubimage2d/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/copyteximage2d/index.md | 2 +- .../web/api/webglrenderingcontext/copytexsubimage2d/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/createbuffer/index.md | 2 +- .../web/api/webglrenderingcontext/createframebuffer/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/createprogram/index.md | 2 +- .../web/api/webglrenderingcontext/createrenderbuffer/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/createshader/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/createtexture/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/cullface/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/deletebuffer/index.md | 2 +- .../web/api/webglrenderingcontext/deleteframebuffer/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/deleteprogram/index.md | 2 +- .../web/api/webglrenderingcontext/deleterenderbuffer/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/deleteshader/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/deletetexture/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/depthfunc/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/depthmask/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/depthrange/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/detachshader/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/disable/index.md | 2 +- .../api/webglrenderingcontext/disablevertexattribarray/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/drawarrays/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/drawelements/index.md | 2 +- .../api/webglrenderingcontext/drawingbuffercolorspace/index.md | 2 +- .../web/api/webglrenderingcontext/drawingbufferheight/index.md | 2 +- .../web/api/webglrenderingcontext/drawingbufferwidth/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/enable/index.md | 2 +- .../api/webglrenderingcontext/enablevertexattribarray/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/finish/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/flush/index.md | 2 +- .../api/webglrenderingcontext/framebufferrenderbuffer/index.md | 2 +- .../web/api/webglrenderingcontext/framebuffertexture2d/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/frontface/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/generatemipmap/index.md | 2 +- .../web/api/webglrenderingcontext/getactiveattrib/index.md | 2 +- .../web/api/webglrenderingcontext/getactiveuniform/index.md | 2 +- .../web/api/webglrenderingcontext/getattachedshaders/index.md | 2 +- .../web/api/webglrenderingcontext/getattriblocation/index.md | 2 +- .../web/api/webglrenderingcontext/getbufferparameter/index.md | 2 +- .../web/api/webglrenderingcontext/getcontextattributes/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/geterror/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/getextension/index.md | 2 +- .../getframebufferattachmentparameter/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/getparameter/index.md | 2 +- .../web/api/webglrenderingcontext/getprograminfolog/index.md | 2 +- .../web/api/webglrenderingcontext/getprogramparameter/index.md | 2 +- .../api/webglrenderingcontext/getrenderbufferparameter/index.md | 2 +- .../web/api/webglrenderingcontext/getshaderinfolog/index.md | 2 +- .../web/api/webglrenderingcontext/getshaderparameter/index.md | 2 +- .../api/webglrenderingcontext/getshaderprecisionformat/index.md | 2 +- .../web/api/webglrenderingcontext/getshadersource/index.md | 2 +- .../api/webglrenderingcontext/getsupportedextensions/index.md | 2 +- .../web/api/webglrenderingcontext/gettexparameter/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/getuniform/index.md | 2 +- .../web/api/webglrenderingcontext/getuniformlocation/index.md | 2 +- .../web/api/webglrenderingcontext/getvertexattrib/index.md | 2 +- .../api/webglrenderingcontext/getvertexattriboffset/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/hint/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/isbuffer/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/iscontextlost/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/isenabled/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/isframebuffer/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/isprogram/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/isrenderbuffer/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/isshader/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/istexture/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/linewidth/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/linkprogram/index.md | 2 +- .../web/api/webglrenderingcontext/makexrcompatible/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/pixelstorei/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/polygonoffset/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/readpixels/index.md | 2 +- .../web/api/webglrenderingcontext/renderbufferstorage/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/samplecoverage/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/scissor/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/shadersource/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/stencilfunc/index.md | 2 +- .../web/api/webglrenderingcontext/stencilfuncseparate/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/stencilmask/index.md | 2 +- .../web/api/webglrenderingcontext/stencilmaskseparate/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/stencilop/index.md | 2 +- .../web/api/webglrenderingcontext/stencilopseparate/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/teximage2d/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/texparameter/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/texsubimage2d/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/uniform/index.md | 2 +- .../en-us/web/api/webglrenderingcontext/uniformmatrix/index.md | 2 +- .../web/api/webglrenderingcontext/unpackcolorspace/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/useprogram/index.md | 2 +- .../web/api/webglrenderingcontext/validateprogram/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/vertexattrib/index.md | 2 +- .../web/api/webglrenderingcontext/vertexattribpointer/index.md | 2 +- files/en-us/web/api/webglrenderingcontext/viewport/index.md | 2 +- files/en-us/web/api/webglsampler/index.md | 2 +- files/en-us/web/api/webglshader/index.md | 2 +- files/en-us/web/api/webglshaderprecisionformat/index.md | 2 +- .../en-us/web/api/webglshaderprecisionformat/precision/index.md | 2 +- .../en-us/web/api/webglshaderprecisionformat/rangemax/index.md | 2 +- .../en-us/web/api/webglshaderprecisionformat/rangemin/index.md | 2 +- files/en-us/web/api/webglsync/index.md | 2 +- files/en-us/web/api/webgltexture/index.md | 2 +- files/en-us/web/api/webgltransformfeedback/index.md | 2 +- files/en-us/web/api/webgluniformlocation/index.md | 2 +- files/en-us/web/api/webglvertexarrayobject/index.md | 2 +- 215 files changed, 215 insertions(+), 215 deletions(-) diff --git a/files/en-us/web/api/webgl2renderingcontext/beginquery/index.md b/files/en-us/web/api/webgl2renderingcontext/beginquery/index.md index 45c13d40e0d89c2..7292539fa7fc992 100644 --- a/files/en-us/web/api/webgl2renderingcontext/beginquery/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/beginquery/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.beginQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.beginQuery()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) starts an asynchronous query. The `target` parameter indicates which kind of query to begin. diff --git a/files/en-us/web/api/webgl2renderingcontext/begintransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/begintransformfeedback/index.md index fe2c311f434e011..14faea523c94c20 100644 --- a/files/en-us/web/api/webgl2renderingcontext/begintransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/begintransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.beginTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.beginTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) starts a transform diff --git a/files/en-us/web/api/webgl2renderingcontext/bindbufferbase/index.md b/files/en-us/web/api/webgl2renderingcontext/bindbufferbase/index.md index 558cce056204804..a2ff90173ab6673 100644 --- a/files/en-us/web/api/webgl2renderingcontext/bindbufferbase/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/bindbufferbase/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bindBufferBase --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bindBufferBase()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) binds a given diff --git a/files/en-us/web/api/webgl2renderingcontext/bindbufferrange/index.md b/files/en-us/web/api/webgl2renderingcontext/bindbufferrange/index.md index 40f1a5ebcce10a4..3caf2aee6bb6179 100644 --- a/files/en-us/web/api/webgl2renderingcontext/bindbufferrange/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/bindbufferrange/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bindBufferRange --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bindBufferRange()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) binds a range of a given diff --git a/files/en-us/web/api/webgl2renderingcontext/bindsampler/index.md b/files/en-us/web/api/webgl2renderingcontext/bindsampler/index.md index c13b58d2c8b63a3..07b177811f06639 100644 --- a/files/en-us/web/api/webgl2renderingcontext/bindsampler/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/bindsampler/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bindSampler --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bindSampler()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) binds a passed {{domxref("WebGLSampler")}} object to the texture unit at the passed index. diff --git a/files/en-us/web/api/webgl2renderingcontext/bindtransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/bindtransformfeedback/index.md index bd1a01394ed98d4..d44606b4414ce81 100644 --- a/files/en-us/web/api/webgl2renderingcontext/bindtransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/bindtransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bindTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bindTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) binds a diff --git a/files/en-us/web/api/webgl2renderingcontext/bindvertexarray/index.md b/files/en-us/web/api/webgl2renderingcontext/bindvertexarray/index.md index 33538248ba8e556..fc5fb287e8f74cf 100644 --- a/files/en-us/web/api/webgl2renderingcontext/bindvertexarray/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/bindvertexarray/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bindVertexArray --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bindVertexArray()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) binds a diff --git a/files/en-us/web/api/webgl2renderingcontext/blitframebuffer/index.md b/files/en-us/web/api/webgl2renderingcontext/blitframebuffer/index.md index 06437051d727f18..c685e77d3d2d848 100644 --- a/files/en-us/web/api/webgl2renderingcontext/blitframebuffer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/blitframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.blitFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.blitFramebuffer()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) transfers a block of pixels diff --git a/files/en-us/web/api/webgl2renderingcontext/bufferdata/index.md b/files/en-us/web/api/webgl2renderingcontext/bufferdata/index.md index 59e32f37123da10..f56dd6a1f79ab82 100644 --- a/files/en-us/web/api/webgl2renderingcontext/bufferdata/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/bufferdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bufferData --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bufferData()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes the buffer object's data store. diff --git a/files/en-us/web/api/webgl2renderingcontext/buffersubdata/index.md b/files/en-us/web/api/webgl2renderingcontext/buffersubdata/index.md index 05231c7461810c1..ec1993c02f15e6b 100644 --- a/files/en-us/web/api/webgl2renderingcontext/buffersubdata/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/buffersubdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.bufferSubData --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.bufferSubData()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) updates a subset of a buffer diff --git a/files/en-us/web/api/webgl2renderingcontext/clearbuffer/index.md b/files/en-us/web/api/webgl2renderingcontext/clearbuffer/index.md index c6ee1c5086213f4..14747fb7656fea1 100644 --- a/files/en-us/web/api/webgl2renderingcontext/clearbuffer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/clearbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.clearBufferiv --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.clearBuffer[fiuv]()`** methods of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) clear buffers from the diff --git a/files/en-us/web/api/webgl2renderingcontext/clientwaitsync/index.md b/files/en-us/web/api/webgl2renderingcontext/clientwaitsync/index.md index 8d348c0bd21fd88..0f039f227b240a8 100644 --- a/files/en-us/web/api/webgl2renderingcontext/clientwaitsync/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/clientwaitsync/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.clientWaitSync --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.clientWaitSync()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) blocks and waits for a diff --git a/files/en-us/web/api/webgl2renderingcontext/compressedteximage3d/index.md b/files/en-us/web/api/webgl2renderingcontext/compressedteximage3d/index.md index 14f98642154d8d0..a4ab00e423d58fd 100644 --- a/files/en-us/web/api/webgl2renderingcontext/compressedteximage3d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/compressedteximage3d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.compressedTexImage3D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`compressedTexImage3D()`** method of the {{domxref("WebGL2RenderingContext")}} interface of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a three-dimensional texture image in a compressed format. diff --git a/files/en-us/web/api/webgl2renderingcontext/compressedtexsubimage3d/index.md b/files/en-us/web/api/webgl2renderingcontext/compressedtexsubimage3d/index.md index fa21c926c52578a..2816cc0c2319e5c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/compressedtexsubimage3d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/compressedtexsubimage3d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.compressedTexSubImage3D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.compressedTexSubImage3D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a diff --git a/files/en-us/web/api/webgl2renderingcontext/copybuffersubdata/index.md b/files/en-us/web/api/webgl2renderingcontext/copybuffersubdata/index.md index f92dcef21287684..3fd762cc4f2387f 100644 --- a/files/en-us/web/api/webgl2renderingcontext/copybuffersubdata/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/copybuffersubdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.copyBufferSubData --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.copyBufferSubData()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) copies part of the data of a diff --git a/files/en-us/web/api/webgl2renderingcontext/copytexsubimage3d/index.md b/files/en-us/web/api/webgl2renderingcontext/copytexsubimage3d/index.md index c86b82f96c16d91..11dd8e308a1e8ba 100644 --- a/files/en-us/web/api/webgl2renderingcontext/copytexsubimage3d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/copytexsubimage3d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.copyTexSubImage3D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.copyTexSubImage3D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) copies pixels from the current diff --git a/files/en-us/web/api/webgl2renderingcontext/createquery/index.md b/files/en-us/web/api/webgl2renderingcontext/createquery/index.md index 3badaf22f74fd84..8791f8c68798f2b 100644 --- a/files/en-us/web/api/webgl2renderingcontext/createquery/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/createquery/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.createQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.createQuery()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) creates and initializes {{domxref("WebGLQuery")}} objects, which provide ways to asynchronously query for diff --git a/files/en-us/web/api/webgl2renderingcontext/createsampler/index.md b/files/en-us/web/api/webgl2renderingcontext/createsampler/index.md index 3dfc6bb4f28e4c0..d9d319a270937eb 100644 --- a/files/en-us/web/api/webgl2renderingcontext/createsampler/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/createsampler/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.createSampler --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.createSampler()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) creates and initializes diff --git a/files/en-us/web/api/webgl2renderingcontext/createtransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/createtransformfeedback/index.md index 09d694dd9ab0abe..30bf515aaead259 100644 --- a/files/en-us/web/api/webgl2renderingcontext/createtransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/createtransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.createTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.createTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) creates and diff --git a/files/en-us/web/api/webgl2renderingcontext/createvertexarray/index.md b/files/en-us/web/api/webgl2renderingcontext/createvertexarray/index.md index 0ed636dfa0cb810..1166c1dd08e3db5 100644 --- a/files/en-us/web/api/webgl2renderingcontext/createvertexarray/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/createvertexarray/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.createVertexArray --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.createVertexArray()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) creates and initializes a diff --git a/files/en-us/web/api/webgl2renderingcontext/deletequery/index.md b/files/en-us/web/api/webgl2renderingcontext/deletequery/index.md index cff44f35f56881d..1ce34e30de41907 100644 --- a/files/en-us/web/api/webgl2renderingcontext/deletequery/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/deletequery/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.deleteQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.deleteQuery()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) deletes a given {{domxref("WebGLQuery")}} object. diff --git a/files/en-us/web/api/webgl2renderingcontext/deletesampler/index.md b/files/en-us/web/api/webgl2renderingcontext/deletesampler/index.md index af4afbf059061f2..2706bc372db5147 100644 --- a/files/en-us/web/api/webgl2renderingcontext/deletesampler/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/deletesampler/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.deleteSampler --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.deleteSampler()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webgl2renderingcontext/deletesync/index.md b/files/en-us/web/api/webgl2renderingcontext/deletesync/index.md index 6ce08d4e5e505a5..1f7bcab18c8e923 100644 --- a/files/en-us/web/api/webgl2renderingcontext/deletesync/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/deletesync/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.deleteSync --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.deleteSync()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) deletes a given {{domxref("WebGLSync")}} object. diff --git a/files/en-us/web/api/webgl2renderingcontext/deletetransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/deletetransformfeedback/index.md index b6f240e69b596fc..798721283487997 100644 --- a/files/en-us/web/api/webgl2renderingcontext/deletetransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/deletetransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.deleteTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.deleteTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webgl2renderingcontext/deletevertexarray/index.md b/files/en-us/web/api/webgl2renderingcontext/deletevertexarray/index.md index 8d0d785469be8ad..de04ca132edef41 100644 --- a/files/en-us/web/api/webgl2renderingcontext/deletevertexarray/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/deletevertexarray/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.deleteVertexArray --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.deleteVertexArray()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webgl2renderingcontext/drawarraysinstanced/index.md b/files/en-us/web/api/webgl2renderingcontext/drawarraysinstanced/index.md index 68bd9c7c20b63b3..a2a238e623db905 100644 --- a/files/en-us/web/api/webgl2renderingcontext/drawarraysinstanced/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/drawarraysinstanced/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.drawArraysInstanced --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.drawArraysInstanced()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) renders primitives from diff --git a/files/en-us/web/api/webgl2renderingcontext/drawbuffers/index.md b/files/en-us/web/api/webgl2renderingcontext/drawbuffers/index.md index 3ae00cefcd7372e..3fdfece9c05e223 100644 --- a/files/en-us/web/api/webgl2renderingcontext/drawbuffers/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/drawbuffers/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.drawBuffers --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.drawBuffers()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) defines draw buffers to which fragment colors are written into. The draw buffer settings are part of the state of the diff --git a/files/en-us/web/api/webgl2renderingcontext/drawelementsinstanced/index.md b/files/en-us/web/api/webgl2renderingcontext/drawelementsinstanced/index.md index b4ed4d0ea644f91..f874912436565b7 100644 --- a/files/en-us/web/api/webgl2renderingcontext/drawelementsinstanced/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/drawelementsinstanced/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.drawElementsInstanced --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.drawElementsInstanced()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) renders primitives from diff --git a/files/en-us/web/api/webgl2renderingcontext/drawrangeelements/index.md b/files/en-us/web/api/webgl2renderingcontext/drawrangeelements/index.md index ce2d72b7544beae..5742e850a40c09c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/drawrangeelements/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/drawrangeelements/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.drawRangeElements --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.drawRangeElements()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) renders primitives from array diff --git a/files/en-us/web/api/webgl2renderingcontext/endquery/index.md b/files/en-us/web/api/webgl2renderingcontext/endquery/index.md index 95e3310b8d8e1d0..5dc5bfd48a744af 100644 --- a/files/en-us/web/api/webgl2renderingcontext/endquery/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/endquery/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.endQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.endQuery()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) marks the end of a given query target. diff --git a/files/en-us/web/api/webgl2renderingcontext/endtransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/endtransformfeedback/index.md index 95e6e4c55da40ad..08860277520bb51 100644 --- a/files/en-us/web/api/webgl2renderingcontext/endtransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/endtransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.endTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.endTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) ends a transform feedback diff --git a/files/en-us/web/api/webgl2renderingcontext/fencesync/index.md b/files/en-us/web/api/webgl2renderingcontext/fencesync/index.md index 4073cf40fd80e8d..418e05e9f8aa8ab 100644 --- a/files/en-us/web/api/webgl2renderingcontext/fencesync/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/fencesync/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.fenceSync --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.fenceSync()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) creates a new {{domxref("WebGLSync")}} object and inserts it into the GL command stream. diff --git a/files/en-us/web/api/webgl2renderingcontext/framebuffertexturelayer/index.md b/files/en-us/web/api/webgl2renderingcontext/framebuffertexturelayer/index.md index bc2be2c717601ea..eade91e5ae06941 100644 --- a/files/en-us/web/api/webgl2renderingcontext/framebuffertexturelayer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/framebuffertexturelayer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.framebufferTextureLayer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.framebufferTextureLayer()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) attaches a single diff --git a/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockname/index.md b/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockname/index.md index 93b11ab586f270e..52ee3416ce932e4 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockname/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockname/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getActiveUniformBlockName --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getActiveUniformBlockName()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) retrieves the name diff --git a/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockparameter/index.md index 3988a881aeeb10d..7d4ffd163b5147c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getactiveuniformblockparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getActiveUniformBlockParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getActiveUniformBlockParameter()`** diff --git a/files/en-us/web/api/webgl2renderingcontext/getactiveuniforms/index.md b/files/en-us/web/api/webgl2renderingcontext/getactiveuniforms/index.md index 5d84bfc95ac72b6..6815a74448bdba4 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getactiveuniforms/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getactiveuniforms/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getActiveUniforms --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getActiveUniforms()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) retrieves information about diff --git a/files/en-us/web/api/webgl2renderingcontext/getbuffersubdata/index.md b/files/en-us/web/api/webgl2renderingcontext/getbuffersubdata/index.md index 5edd4c235304751..7512ce5e6795ccb 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getbuffersubdata/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getbuffersubdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getBufferSubData --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getBufferSubData()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) reads data from a buffer diff --git a/files/en-us/web/api/webgl2renderingcontext/getfragdatalocation/index.md b/files/en-us/web/api/webgl2renderingcontext/getfragdatalocation/index.md index b701332d7a53ddb..15fddc34df3ef9c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getfragdatalocation/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getfragdatalocation/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getFragDataLocation --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getFragDataLocation()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns the binding of diff --git a/files/en-us/web/api/webgl2renderingcontext/getindexedparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/getindexedparameter/index.md index 29ff42cdbb8d59f..c226aa14962c307 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getindexedparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getindexedparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getIndexedParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getIndexedParameter()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns indexed diff --git a/files/en-us/web/api/webgl2renderingcontext/getinternalformatparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/getinternalformatparameter/index.md index baf2b7a5df6b30f..9a7e79bd473c4d4 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getinternalformatparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getinternalformatparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getInternalformatParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getInternalformatParameter()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns diff --git a/files/en-us/web/api/webgl2renderingcontext/getquery/index.md b/files/en-us/web/api/webgl2renderingcontext/getquery/index.md index e4bf385a5e5b221..a3dd794bf3f82c9 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getquery/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getquery/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getQuery()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns the currently active {{domxref("WebGLQuery")}} for the `target`, or [`null`](/en-US/docs/Web/JavaScript/Reference/Operators/null). diff --git a/files/en-us/web/api/webgl2renderingcontext/getqueryparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/getqueryparameter/index.md index a286c9a1723f4ce..2f0c7d689720972 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getqueryparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getqueryparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getQueryParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getQueryParameter()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns parameter diff --git a/files/en-us/web/api/webgl2renderingcontext/getsamplerparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/getsamplerparameter/index.md index 116703f9fa60221..29ad0aff20a046c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getsamplerparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getsamplerparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getSamplerParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getSamplerParameter()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns parameter diff --git a/files/en-us/web/api/webgl2renderingcontext/getsyncparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/getsyncparameter/index.md index da9474f8f36bc09..6249245f2f17c09 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getsyncparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getsyncparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getSyncParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getSyncParameter()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns parameter diff --git a/files/en-us/web/api/webgl2renderingcontext/gettransformfeedbackvarying/index.md b/files/en-us/web/api/webgl2renderingcontext/gettransformfeedbackvarying/index.md index 111bbacd5bb8374..bdf0f5157fc0a82 100644 --- a/files/en-us/web/api/webgl2renderingcontext/gettransformfeedbackvarying/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/gettransformfeedbackvarying/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getTransformFeedbackVarying --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getTransformFeedbackVarying()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns diff --git a/files/en-us/web/api/webgl2renderingcontext/getuniformblockindex/index.md b/files/en-us/web/api/webgl2renderingcontext/getuniformblockindex/index.md index 18bd38a6f8362b2..4be72e35e01b92f 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getuniformblockindex/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getuniformblockindex/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getUniformBlockIndex --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getUniformBlockIndex()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) retrieves the index of diff --git a/files/en-us/web/api/webgl2renderingcontext/getuniformindices/index.md b/files/en-us/web/api/webgl2renderingcontext/getuniformindices/index.md index 601269bbb59cdbb..f3d13959e732e8a 100644 --- a/files/en-us/web/api/webgl2renderingcontext/getuniformindices/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/getuniformindices/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.getUniformIndices --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.getUniformIndices()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) retrieves the indices of a diff --git a/files/en-us/web/api/webgl2renderingcontext/index.md b/files/en-us/web/api/webgl2renderingcontext/index.md index 5bcd66c0f46f053..5ab6ce1eab558b7 100644 --- a/files/en-us/web/api/webgl2renderingcontext/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGL2RenderingContext --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML {{HTMLElement("canvas")}} element. diff --git a/files/en-us/web/api/webgl2renderingcontext/invalidateframebuffer/index.md b/files/en-us/web/api/webgl2renderingcontext/invalidateframebuffer/index.md index 47913343e87305b..323df897bb4cc3c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/invalidateframebuffer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/invalidateframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.invalidateFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.invalidateFramebuffer()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) invalidates the contents diff --git a/files/en-us/web/api/webgl2renderingcontext/invalidatesubframebuffer/index.md b/files/en-us/web/api/webgl2renderingcontext/invalidatesubframebuffer/index.md index 4d139b7e42f4f2d..0fa9b2df56e4bf2 100644 --- a/files/en-us/web/api/webgl2renderingcontext/invalidatesubframebuffer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/invalidatesubframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.invalidateSubFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.invalidateSubFramebuffer()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) invalidates diff --git a/files/en-us/web/api/webgl2renderingcontext/isquery/index.md b/files/en-us/web/api/webgl2renderingcontext/isquery/index.md index 34370523a74e72b..5fce370667df0ea 100644 --- a/files/en-us/web/api/webgl2renderingcontext/isquery/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/isquery/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.isQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.isQuery()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed object is a valid {{domxref("WebGLQuery")}} object. diff --git a/files/en-us/web/api/webgl2renderingcontext/issampler/index.md b/files/en-us/web/api/webgl2renderingcontext/issampler/index.md index 711a10f4677a27b..91686973e2b908f 100644 --- a/files/en-us/web/api/webgl2renderingcontext/issampler/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/issampler/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.isSampler --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.isSampler()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed object is a valid {{domxref("WebGLSampler")}} object. diff --git a/files/en-us/web/api/webgl2renderingcontext/issync/index.md b/files/en-us/web/api/webgl2renderingcontext/issync/index.md index 574415fd58acfab..c559ee6b220d559 100644 --- a/files/en-us/web/api/webgl2renderingcontext/issync/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/issync/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.isSync --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.isSync()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed object is a valid {{domxref("WebGLSync")}} object. diff --git a/files/en-us/web/api/webgl2renderingcontext/istransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/istransformfeedback/index.md index f5ef16c66f11990..ed660731801b3c0 100644 --- a/files/en-us/web/api/webgl2renderingcontext/istransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/istransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.isTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.isTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns `true` diff --git a/files/en-us/web/api/webgl2renderingcontext/isvertexarray/index.md b/files/en-us/web/api/webgl2renderingcontext/isvertexarray/index.md index aca1d5c59ed0f4c..68ef1723f2dd74a 100644 --- a/files/en-us/web/api/webgl2renderingcontext/isvertexarray/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/isvertexarray/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.isVertexArray --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.isVertexArray()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the diff --git a/files/en-us/web/api/webgl2renderingcontext/pausetransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/pausetransformfeedback/index.md index 7240a2d38eff588..9f2979abf02835d 100644 --- a/files/en-us/web/api/webgl2renderingcontext/pausetransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/pausetransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.pauseTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.pauseTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) pauses a transform diff --git a/files/en-us/web/api/webgl2renderingcontext/readbuffer/index.md b/files/en-us/web/api/webgl2renderingcontext/readbuffer/index.md index 6d4b35f1d797d98..2537182054ff6c3 100644 --- a/files/en-us/web/api/webgl2renderingcontext/readbuffer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/readbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.readBuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.readBuffer()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) selects a color buffer as the source for pixels for subsequent calls to diff --git a/files/en-us/web/api/webgl2renderingcontext/renderbufferstoragemultisample/index.md b/files/en-us/web/api/webgl2renderingcontext/renderbufferstoragemultisample/index.md index 1b72394d0efd02a..c72fc57f420d957 100644 --- a/files/en-us/web/api/webgl2renderingcontext/renderbufferstoragemultisample/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/renderbufferstoragemultisample/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.renderbufferStorageMultisample --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.renderbufferStorageMultisample()`** diff --git a/files/en-us/web/api/webgl2renderingcontext/resumetransformfeedback/index.md b/files/en-us/web/api/webgl2renderingcontext/resumetransformfeedback/index.md index 4b512cfec0ddaf0..9094a7d3f7f77ee 100644 --- a/files/en-us/web/api/webgl2renderingcontext/resumetransformfeedback/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/resumetransformfeedback/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.resumeTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.resumeTransformFeedback()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) resumes a diff --git a/files/en-us/web/api/webgl2renderingcontext/samplerparameter/index.md b/files/en-us/web/api/webgl2renderingcontext/samplerparameter/index.md index 4fee200a97dbc8e..5f58d938a7eb6c6 100644 --- a/files/en-us/web/api/webgl2renderingcontext/samplerparameter/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/samplerparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.samplerParameteri --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.samplerParameter[if]()`** methods of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) set diff --git a/files/en-us/web/api/webgl2renderingcontext/teximage3d/index.md b/files/en-us/web/api/webgl2renderingcontext/teximage3d/index.md index 957b9a43c512225..dc2be7f70563083 100644 --- a/files/en-us/web/api/webgl2renderingcontext/teximage3d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/teximage3d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.texImage3D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.texImage3D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a three-dimensional texture image. diff --git a/files/en-us/web/api/webgl2renderingcontext/texstorage2d/index.md b/files/en-us/web/api/webgl2renderingcontext/texstorage2d/index.md index ee219ae2ff174dc..040717ce0db9b3c 100644 --- a/files/en-us/web/api/webgl2renderingcontext/texstorage2d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/texstorage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.texStorage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.texStorage2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies all levels of diff --git a/files/en-us/web/api/webgl2renderingcontext/texstorage3d/index.md b/files/en-us/web/api/webgl2renderingcontext/texstorage3d/index.md index 17b3e46948bcdce..5767d533d983718 100644 --- a/files/en-us/web/api/webgl2renderingcontext/texstorage3d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/texstorage3d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.texStorage3D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.texStorage3D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies all levels of a diff --git a/files/en-us/web/api/webgl2renderingcontext/texsubimage3d/index.md b/files/en-us/web/api/webgl2renderingcontext/texsubimage3d/index.md index b4bf1542763c1a5..f233ca0ae411822 100644 --- a/files/en-us/web/api/webgl2renderingcontext/texsubimage3d/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/texsubimage3d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.texSubImage3D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.texSubImage3D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a sub-rectangle of the diff --git a/files/en-us/web/api/webgl2renderingcontext/transformfeedbackvaryings/index.md b/files/en-us/web/api/webgl2renderingcontext/transformfeedbackvaryings/index.md index 66b6e0e941524d5..2c08cdafd77d36f 100644 --- a/files/en-us/web/api/webgl2renderingcontext/transformfeedbackvaryings/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/transformfeedbackvaryings/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.transformFeedbackVaryings --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.transformFeedbackVaryings()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) specifies values diff --git a/files/en-us/web/api/webgl2renderingcontext/uniform/index.md b/files/en-us/web/api/webgl2renderingcontext/uniform/index.md index 8c1d19c3382775a..dfb11cef2e0e378 100644 --- a/files/en-us/web/api/webgl2renderingcontext/uniform/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/uniform/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.uniform1ui --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.uniform[1234][uif][v]()`** methods of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specify values of diff --git a/files/en-us/web/api/webgl2renderingcontext/uniformblockbinding/index.md b/files/en-us/web/api/webgl2renderingcontext/uniformblockbinding/index.md index 6856f7081d89b45..1780fd403699fc1 100644 --- a/files/en-us/web/api/webgl2renderingcontext/uniformblockbinding/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/uniformblockbinding/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.uniformBlockBinding --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.uniformBlockBinding()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) assigns binding points diff --git a/files/en-us/web/api/webgl2renderingcontext/uniformmatrix/index.md b/files/en-us/web/api/webgl2renderingcontext/uniformmatrix/index.md index 69277ef2eeac08a..fd20a5eff344078 100644 --- a/files/en-us/web/api/webgl2renderingcontext/uniformmatrix/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/uniformmatrix/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.uniformMatrix2fv --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.uniformMatrix[234]x[234]fv()`** methods of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) specify matrix diff --git a/files/en-us/web/api/webgl2renderingcontext/vertexattribdivisor/index.md b/files/en-us/web/api/webgl2renderingcontext/vertexattribdivisor/index.md index f7658413c3fc5af..f0c5ac1e91bd587 100644 --- a/files/en-us/web/api/webgl2renderingcontext/vertexattribdivisor/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/vertexattribdivisor/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.vertexAttribDivisor --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.vertexAttribDivisor()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) modifies the rate at diff --git a/files/en-us/web/api/webgl2renderingcontext/vertexattribi/index.md b/files/en-us/web/api/webgl2renderingcontext/vertexattribi/index.md index 6ec00f948ca5a03..601f67aa97c775d 100644 --- a/files/en-us/web/api/webgl2renderingcontext/vertexattribi/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/vertexattribi/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.vertexAttribI4i --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.vertexAttribI4[u]i[v]()`** methods of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) specify integer diff --git a/files/en-us/web/api/webgl2renderingcontext/vertexattribipointer/index.md b/files/en-us/web/api/webgl2renderingcontext/vertexattribipointer/index.md index e0d34f3a5a35e40..98ec394c927c0c3 100644 --- a/files/en-us/web/api/webgl2renderingcontext/vertexattribipointer/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/vertexattribipointer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.vertexAttribIPointer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.vertexAttribIPointer()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) specifies integer data diff --git a/files/en-us/web/api/webgl2renderingcontext/waitsync/index.md b/files/en-us/web/api/webgl2renderingcontext/waitsync/index.md index 9aca9e05dce6094..088f3cb031f0e94 100644 --- a/files/en-us/web/api/webgl2renderingcontext/waitsync/index.md +++ b/files/en-us/web/api/webgl2renderingcontext/waitsync/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGL2RenderingContext.waitSync --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGL2RenderingContext.waitSync()`** method of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) returns immediately, but waits on the GL server until the given {{domxref("WebGLSync")}} object is signaled. diff --git a/files/en-us/web/api/webgl_api/index.md b/files/en-us/web/api/webgl_api/index.md index ce3bd292fd3795d..d4af98f46c7bdbf 100644 --- a/files/en-us/web/api/webgl_api/index.md +++ b/files/en-us/web/api/webgl_api/index.md @@ -7,7 +7,7 @@ browser-compat: - api.WebGL2RenderingContext --- -{{DefaultAPISidebar("WebGL")}} +{{DefaultAPISidebar("WebGL")}}{{AvailableInWorkers}} **WebGL** (Web Graphics Library) is a JavaScript API for rendering high-performance interactive 3D and 2D graphics within any compatible web browser without the use of plug-ins. WebGL does so by introducing an API that closely conforms to OpenGL ES 2.0 that can be used in HTML {{HTMLElement("canvas")}} elements. This conformance makes it possible for the API to take advantage of hardware graphics acceleration provided by the user's device. diff --git a/files/en-us/web/api/webglactiveinfo/index.md b/files/en-us/web/api/webglactiveinfo/index.md index 182fd3c29ee5846..f75abab77e27170 100644 --- a/files/en-us/web/api/webglactiveinfo/index.md +++ b/files/en-us/web/api/webglactiveinfo/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLActiveInfo --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLActiveInfo** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents the information returned by calling the {{domxref("WebGLRenderingContext.getActiveAttrib()")}} and {{domxref("WebGLRenderingContext.getActiveUniform()")}} methods. diff --git a/files/en-us/web/api/webglactiveinfo/name/index.md b/files/en-us/web/api/webglactiveinfo/name/index.md index 24f6a70b96ccbdc..4b8673dad5f7ea0 100644 --- a/files/en-us/web/api/webglactiveinfo/name/index.md +++ b/files/en-us/web/api/webglactiveinfo/name/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLActiveInfo.name --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLActiveInfo.name`** property represents the name of the requested data returned by calling the {{domxref("WebGLRenderingContext.getActiveAttrib()", "getActiveAttrib()")}} or {{domxref("WebGLRenderingContext.getActiveUniform()", "getActiveUniform()")}} methods. diff --git a/files/en-us/web/api/webglactiveinfo/size/index.md b/files/en-us/web/api/webglactiveinfo/size/index.md index 30026e1f6841213..26c2aab7ba79a5a 100644 --- a/files/en-us/web/api/webglactiveinfo/size/index.md +++ b/files/en-us/web/api/webglactiveinfo/size/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLActiveInfo.size --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLActiveInfo.size`** property is a {{jsxref("Number")}} representing the size of the requested data returned by calling the {{domxref("WebGLRenderingContext.getActiveAttrib()", "getActiveAttrib()")}} or {{domxref("WebGLRenderingContext.getActiveUniform()", "getActiveUniform()")}} methods. diff --git a/files/en-us/web/api/webglactiveinfo/type/index.md b/files/en-us/web/api/webglactiveinfo/type/index.md index eb18955fe2e52e1..92afe5472913001 100644 --- a/files/en-us/web/api/webglactiveinfo/type/index.md +++ b/files/en-us/web/api/webglactiveinfo/type/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLActiveInfo.type --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLActiveInfo.type`** property represents the type of the requested data returned by calling the {{domxref("WebGLRenderingContext.getActiveAttrib()", "getActiveAttrib()")}} or {{domxref("WebGLRenderingContext.getActiveUniform()", "getActiveUniform()")}} methods. diff --git a/files/en-us/web/api/webglbuffer/index.md b/files/en-us/web/api/webglbuffer/index.md index 78f1af077c43225..2598f0db01623d3 100644 --- a/files/en-us/web/api/webglbuffer/index.md +++ b/files/en-us/web/api/webglbuffer/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLBuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLBuffer** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents an opaque buffer object storing data such as vertices or colors. diff --git a/files/en-us/web/api/webglcontextevent/index.md b/files/en-us/web/api/webglcontextevent/index.md index 502373405fd879d..fbd8140c1f29268 100644 --- a/files/en-us/web/api/webglcontextevent/index.md +++ b/files/en-us/web/api/webglcontextevent/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLContextEvent --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebContextEvent** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and is an interface for an event that is generated in response to a status change to the WebGL rendering context. diff --git a/files/en-us/web/api/webglcontextevent/statusmessage/index.md b/files/en-us/web/api/webglcontextevent/statusmessage/index.md index 9c900ef69b06705..4dbd6823392f432 100644 --- a/files/en-us/web/api/webglcontextevent/statusmessage/index.md +++ b/files/en-us/web/api/webglcontextevent/statusmessage/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLContextEvent.statusMessage --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLContextEvent.statusMessage`** property contains additional event status information, or is an empty string if no additional information is available. diff --git a/files/en-us/web/api/webglcontextevent/webglcontextevent/index.md b/files/en-us/web/api/webglcontextevent/webglcontextevent/index.md index 0875376e8b6fca1..8c37dfea42f32ab 100644 --- a/files/en-us/web/api/webglcontextevent/webglcontextevent/index.md +++ b/files/en-us/web/api/webglcontextevent/webglcontextevent/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.WebGLContextEvent.WebGLContextEvent --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLContextEvent()`** constructor creates a new {{domxref("WebGLContextEvent")}} object. diff --git a/files/en-us/web/api/webglframebuffer/index.md b/files/en-us/web/api/webglframebuffer/index.md index a83864cf17d360e..d1cc057661412fc 100644 --- a/files/en-us/web/api/webglframebuffer/index.md +++ b/files/en-us/web/api/webglframebuffer/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLFramebuffer** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents a collection of buffers that serve as a rendering destination. diff --git a/files/en-us/web/api/webglobject/index.md b/files/en-us/web/api/webglobject/index.md index fd046c9f239a62f..93ab1587e50f5b3 100644 --- a/files/en-us/web/api/webglobject/index.md +++ b/files/en-us/web/api/webglobject/index.md @@ -7,7 +7,7 @@ status: browser-compat: api.WebGLObject --- -{{APIRef("WebGL")}}{{SeeCompatTable}} +{{APIRef("WebGL")}}{{SeeCompatTable}}{{AvailableInWorkers}} The **`WebGLObject`** is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and is the parent interface for all WebGL objects. diff --git a/files/en-us/web/api/webglprogram/index.md b/files/en-us/web/api/webglprogram/index.md index 6c9ef8caa2b9015..70111e8645fa135 100644 --- a/files/en-us/web/api/webglprogram/index.md +++ b/files/en-us/web/api/webglprogram/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLProgram`** is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and is a combination of two compiled {{domxref("WebGLShader")}}s consisting of a vertex shader and a fragment shader (both written in GLSL). diff --git a/files/en-us/web/api/webglquery/index.md b/files/en-us/web/api/webglquery/index.md index ae73ee5a0262599..6551063ea9da6f3 100644 --- a/files/en-us/web/api/webglquery/index.md +++ b/files/en-us/web/api/webglquery/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLQuery --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLQuery`** interface is part of the [WebGL 2](/en-US/docs/Web/API/WebGL_API) API and provides ways to asynchronously query for information. By default, occlusion queries and primitive queries are available. diff --git a/files/en-us/web/api/webglrenderbuffer/index.md b/files/en-us/web/api/webglrenderbuffer/index.md index ac893d9ee7dbe52..282e0d7a786680f 100644 --- a/files/en-us/web/api/webglrenderbuffer/index.md +++ b/files/en-us/web/api/webglrenderbuffer/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLRenderbuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLRenderbuffer** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents a buffer that can contain an image, or that can be a source or target of a rendering operation. diff --git a/files/en-us/web/api/webglrenderingcontext/activetexture/index.md b/files/en-us/web/api/webglrenderingcontext/activetexture/index.md index 78f95c70219e46c..bc4f576443b1adb 100644 --- a/files/en-us/web/api/webglrenderingcontext/activetexture/index.md +++ b/files/en-us/web/api/webglrenderingcontext/activetexture/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.activeTexture --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.activeTexture()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies which texture unit to diff --git a/files/en-us/web/api/webglrenderingcontext/attachshader/index.md b/files/en-us/web/api/webglrenderingcontext/attachshader/index.md index 378278143e7dcea..07fa4a3ce513cea 100644 --- a/files/en-us/web/api/webglrenderingcontext/attachshader/index.md +++ b/files/en-us/web/api/webglrenderingcontext/attachshader/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.attachShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLRenderingContext.attachShader()** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) attaches either a fragment or vertex {{domxref("WebGLShader")}} to a {{domxref("WebGLProgram")}}. diff --git a/files/en-us/web/api/webglrenderingcontext/bindattriblocation/index.md b/files/en-us/web/api/webglrenderingcontext/bindattriblocation/index.md index 7546c3044a03277..da9ae2d591a521f 100644 --- a/files/en-us/web/api/webglrenderingcontext/bindattriblocation/index.md +++ b/files/en-us/web/api/webglrenderingcontext/bindattriblocation/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bindAttribLocation --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bindAttribLocation()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) binds a generic vertex index diff --git a/files/en-us/web/api/webglrenderingcontext/bindbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/bindbuffer/index.md index e11668c0327b1ba..6d60c082593b813 100644 --- a/files/en-us/web/api/webglrenderingcontext/bindbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/bindbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bindBuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bindBuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) binds a given {{domxref("WebGLBuffer")}} to a target. diff --git a/files/en-us/web/api/webglrenderingcontext/bindframebuffer/index.md b/files/en-us/web/api/webglrenderingcontext/bindframebuffer/index.md index e166e68b1bf30c4..9a9351e1a2cb6a5 100644 --- a/files/en-us/web/api/webglrenderingcontext/bindframebuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/bindframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bindFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bindFramebuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) binds to the specified target the provided {{domxref("WebGLFramebuffer")}}, or, if the `framebuffer` argument is null, the default {{domxref("WebGLFramebuffer")}}, which is associated with the canvas rendering context. diff --git a/files/en-us/web/api/webglrenderingcontext/bindrenderbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/bindrenderbuffer/index.md index 10f76b0c1e7aac0..8de27db612de44c 100644 --- a/files/en-us/web/api/webglrenderingcontext/bindrenderbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/bindrenderbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bindRenderbuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bindRenderbuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) binds a given diff --git a/files/en-us/web/api/webglrenderingcontext/bindtexture/index.md b/files/en-us/web/api/webglrenderingcontext/bindtexture/index.md index a816490288f4c6e..cc633d1299d37d2 100644 --- a/files/en-us/web/api/webglrenderingcontext/bindtexture/index.md +++ b/files/en-us/web/api/webglrenderingcontext/bindtexture/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bindTexture --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bindTexture()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) binds a given {{domxref("WebGLTexture")}} to a target (binding point). diff --git a/files/en-us/web/api/webglrenderingcontext/blendcolor/index.md b/files/en-us/web/api/webglrenderingcontext/blendcolor/index.md index c87df67aec33626..b7a6682e04dae29 100644 --- a/files/en-us/web/api/webglrenderingcontext/blendcolor/index.md +++ b/files/en-us/web/api/webglrenderingcontext/blendcolor/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.blendColor --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.blendColor()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) is used to set the source and destination blending factors. diff --git a/files/en-us/web/api/webglrenderingcontext/blendequation/index.md b/files/en-us/web/api/webglrenderingcontext/blendequation/index.md index e6641674046c908..c880fe13536714b 100644 --- a/files/en-us/web/api/webglrenderingcontext/blendequation/index.md +++ b/files/en-us/web/api/webglrenderingcontext/blendequation/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.blendEquation --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.blendEquation()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) is used to set both the RGB blend diff --git a/files/en-us/web/api/webglrenderingcontext/blendequationseparate/index.md b/files/en-us/web/api/webglrenderingcontext/blendequationseparate/index.md index c445818dbde9af5..a6a1f623ae771ec 100644 --- a/files/en-us/web/api/webglrenderingcontext/blendequationseparate/index.md +++ b/files/en-us/web/api/webglrenderingcontext/blendequationseparate/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.blendEquationSeparate --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.blendEquationSeparate()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) is used to set the RGB diff --git a/files/en-us/web/api/webglrenderingcontext/blendfunc/index.md b/files/en-us/web/api/webglrenderingcontext/blendfunc/index.md index 9afc1a024b528f8..fd628b6c3094d61 100644 --- a/files/en-us/web/api/webglrenderingcontext/blendfunc/index.md +++ b/files/en-us/web/api/webglrenderingcontext/blendfunc/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.blendFunc --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.blendFunc()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) defines which function is used for blending pixel arithmetic. diff --git a/files/en-us/web/api/webglrenderingcontext/blendfuncseparate/index.md b/files/en-us/web/api/webglrenderingcontext/blendfuncseparate/index.md index bceaafef04d43f4..22e8601206e2baa 100644 --- a/files/en-us/web/api/webglrenderingcontext/blendfuncseparate/index.md +++ b/files/en-us/web/api/webglrenderingcontext/blendfuncseparate/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.blendFuncSeparate --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.blendFuncSeparate()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) defines which function is used diff --git a/files/en-us/web/api/webglrenderingcontext/bufferdata/index.md b/files/en-us/web/api/webglrenderingcontext/bufferdata/index.md index 7659ef23de12d47..5d7f29a208139ac 100644 --- a/files/en-us/web/api/webglrenderingcontext/bufferdata/index.md +++ b/files/en-us/web/api/webglrenderingcontext/bufferdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bufferData --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bufferData()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) initializes and creates the buffer object's data store. diff --git a/files/en-us/web/api/webglrenderingcontext/buffersubdata/index.md b/files/en-us/web/api/webglrenderingcontext/buffersubdata/index.md index 84f156cd81a83a6..ecf2b451395f396 100644 --- a/files/en-us/web/api/webglrenderingcontext/buffersubdata/index.md +++ b/files/en-us/web/api/webglrenderingcontext/buffersubdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.bufferSubData --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.bufferSubData()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) updates a subset of a buffer diff --git a/files/en-us/web/api/webglrenderingcontext/canvas/index.md b/files/en-us/web/api/webglrenderingcontext/canvas/index.md index 9b745bc7553541e..0a0a4e73e960b18 100644 --- a/files/en-us/web/api/webglrenderingcontext/canvas/index.md +++ b/files/en-us/web/api/webglrenderingcontext/canvas/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLRenderingContext.canvas --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.canvas`** property is a read-only reference to the {{domxref("HTMLCanvasElement")}} or {{domxref("OffscreenCanvas")}} diff --git a/files/en-us/web/api/webglrenderingcontext/checkframebufferstatus/index.md b/files/en-us/web/api/webglrenderingcontext/checkframebufferstatus/index.md index 3e22b347b965bb2..1a0c51a834f19a9 100644 --- a/files/en-us/web/api/webglrenderingcontext/checkframebufferstatus/index.md +++ b/files/en-us/web/api/webglrenderingcontext/checkframebufferstatus/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.checkFramebufferStatus --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.checkFramebufferStatus()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns the completeness diff --git a/files/en-us/web/api/webglrenderingcontext/clear/index.md b/files/en-us/web/api/webglrenderingcontext/clear/index.md index 23c7daecb962f09..23e04d92bac31d5 100644 --- a/files/en-us/web/api/webglrenderingcontext/clear/index.md +++ b/files/en-us/web/api/webglrenderingcontext/clear/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.clear --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.clear()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) clears buffers to preset values. diff --git a/files/en-us/web/api/webglrenderingcontext/clearcolor/index.md b/files/en-us/web/api/webglrenderingcontext/clearcolor/index.md index 8236f3435166e89..d620c5c979a1ae8 100644 --- a/files/en-us/web/api/webglrenderingcontext/clearcolor/index.md +++ b/files/en-us/web/api/webglrenderingcontext/clearcolor/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.clearColor --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.clearColor()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies the color values used when clearing color buffers. diff --git a/files/en-us/web/api/webglrenderingcontext/cleardepth/index.md b/files/en-us/web/api/webglrenderingcontext/cleardepth/index.md index ac749dc22f6b092..1f4aeaca4d70ea0 100644 --- a/files/en-us/web/api/webglrenderingcontext/cleardepth/index.md +++ b/files/en-us/web/api/webglrenderingcontext/cleardepth/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.clearDepth --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.clearDepth()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies the clear value for the depth buffer. diff --git a/files/en-us/web/api/webglrenderingcontext/clearstencil/index.md b/files/en-us/web/api/webglrenderingcontext/clearstencil/index.md index 0b338432c193653..6c61302f88e64cb 100644 --- a/files/en-us/web/api/webglrenderingcontext/clearstencil/index.md +++ b/files/en-us/web/api/webglrenderingcontext/clearstencil/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.clearStencil --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.clearStencil()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies the clear value for the stencil buffer. diff --git a/files/en-us/web/api/webglrenderingcontext/colormask/index.md b/files/en-us/web/api/webglrenderingcontext/colormask/index.md index 91ee8d8ede69e5c..b08f34e1442ab99 100644 --- a/files/en-us/web/api/webglrenderingcontext/colormask/index.md +++ b/files/en-us/web/api/webglrenderingcontext/colormask/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.colorMask --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.colorMask()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets which color components to enable or to disable when drawing or rendering to a {{domxref("WebGLFramebuffer")}}. diff --git a/files/en-us/web/api/webglrenderingcontext/compileshader/index.md b/files/en-us/web/api/webglrenderingcontext/compileshader/index.md index 768cfcb8eb9d037..9cbc7dfb16fb1c6 100644 --- a/files/en-us/web/api/webglrenderingcontext/compileshader/index.md +++ b/files/en-us/web/api/webglrenderingcontext/compileshader/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.compileShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLRenderingContext.compileShader()** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) compiles a GLSL shader into binary data so that it can be used by a {{domxref("WebGLProgram")}}. diff --git a/files/en-us/web/api/webglrenderingcontext/compressedteximage2d/index.md b/files/en-us/web/api/webglrenderingcontext/compressedteximage2d/index.md index fe816218a0432d9..7ccd6671e55f793 100644 --- a/files/en-us/web/api/webglrenderingcontext/compressedteximage2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/compressedteximage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.compressedTexImage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`compressedTexImage2D()`** method of the {{domxref("WebGLRenderingContext")}} interface of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a two-dimensional texture image in a compressed format. diff --git a/files/en-us/web/api/webglrenderingcontext/compressedtexsubimage2d/index.md b/files/en-us/web/api/webglrenderingcontext/compressedtexsubimage2d/index.md index e12f0590cedda33..a164ff38549c197 100644 --- a/files/en-us/web/api/webglrenderingcontext/compressedtexsubimage2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/compressedtexsubimage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.compressedTexSubImage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.compressedTexSubImage2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a diff --git a/files/en-us/web/api/webglrenderingcontext/copyteximage2d/index.md b/files/en-us/web/api/webglrenderingcontext/copyteximage2d/index.md index 147053963aab604..75671f75a996e2b 100644 --- a/files/en-us/web/api/webglrenderingcontext/copyteximage2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/copyteximage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.copyTexImage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.copyTexImage2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) copies pixels from the current diff --git a/files/en-us/web/api/webglrenderingcontext/copytexsubimage2d/index.md b/files/en-us/web/api/webglrenderingcontext/copytexsubimage2d/index.md index ddd8f2d9ec40477..a035fa90e09929e 100644 --- a/files/en-us/web/api/webglrenderingcontext/copytexsubimage2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/copytexsubimage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.copyTexSubImage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.copyTexSubImage2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) copies pixels from the current diff --git a/files/en-us/web/api/webglrenderingcontext/createbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/createbuffer/index.md index f90a3097ee98cad..87260ba73c301bb 100644 --- a/files/en-us/web/api/webglrenderingcontext/createbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/createbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.createBuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.createBuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes a {{domxref("WebGLBuffer")}} storing data such as vertices or colors. diff --git a/files/en-us/web/api/webglrenderingcontext/createframebuffer/index.md b/files/en-us/web/api/webglrenderingcontext/createframebuffer/index.md index 6791f9ee490a613..4a2ea5eba5c419c 100644 --- a/files/en-us/web/api/webglrenderingcontext/createframebuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/createframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.createFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.createFramebuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes a diff --git a/files/en-us/web/api/webglrenderingcontext/createprogram/index.md b/files/en-us/web/api/webglrenderingcontext/createprogram/index.md index 1c08fff2501cd6e..d7ecbc35b3a30c5 100644 --- a/files/en-us/web/api/webglrenderingcontext/createprogram/index.md +++ b/files/en-us/web/api/webglrenderingcontext/createprogram/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.createProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.createProgram()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes a diff --git a/files/en-us/web/api/webglrenderingcontext/createrenderbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/createrenderbuffer/index.md index c64c23d3045c4f5..aa613244fdfd76b 100644 --- a/files/en-us/web/api/webglrenderingcontext/createrenderbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/createrenderbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.createRenderbuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.createRenderbuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes a diff --git a/files/en-us/web/api/webglrenderingcontext/createshader/index.md b/files/en-us/web/api/webglrenderingcontext/createshader/index.md index e9447432098cc12..70a9fb85dba7f98 100644 --- a/files/en-us/web/api/webglrenderingcontext/createshader/index.md +++ b/files/en-us/web/api/webglrenderingcontext/createshader/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.createShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The {{domxref("WebGLRenderingContext")}} method **`createShader()`** of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates a diff --git a/files/en-us/web/api/webglrenderingcontext/createtexture/index.md b/files/en-us/web/api/webglrenderingcontext/createtexture/index.md index b0919c84501fd5f..be3056c5dbde6a7 100644 --- a/files/en-us/web/api/webglrenderingcontext/createtexture/index.md +++ b/files/en-us/web/api/webglrenderingcontext/createtexture/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.createTexture --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.createTexture()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes a diff --git a/files/en-us/web/api/webglrenderingcontext/cullface/index.md b/files/en-us/web/api/webglrenderingcontext/cullface/index.md index 590fd0d49172980..bce249370c88366 100644 --- a/files/en-us/web/api/webglrenderingcontext/cullface/index.md +++ b/files/en-us/web/api/webglrenderingcontext/cullface/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.cullFace --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.cullFace()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies whether or not front- and/or back-facing polygons can be culled. diff --git a/files/en-us/web/api/webglrenderingcontext/deletebuffer/index.md b/files/en-us/web/api/webglrenderingcontext/deletebuffer/index.md index f018de225cc5249..8dab4abb3fc59e6 100644 --- a/files/en-us/web/api/webglrenderingcontext/deletebuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/deletebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.deleteBuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.deleteBuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) deletes a given {{domxref("WebGLBuffer")}}. This method has no effect if the buffer has already been diff --git a/files/en-us/web/api/webglrenderingcontext/deleteframebuffer/index.md b/files/en-us/web/api/webglrenderingcontext/deleteframebuffer/index.md index a632ea0ff7d16c9..e35d118ac179fa3 100644 --- a/files/en-us/web/api/webglrenderingcontext/deleteframebuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/deleteframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.deleteFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.deleteFramebuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webglrenderingcontext/deleteprogram/index.md b/files/en-us/web/api/webglrenderingcontext/deleteprogram/index.md index 91b4eef25efb181..b82b11336b5ab77 100644 --- a/files/en-us/web/api/webglrenderingcontext/deleteprogram/index.md +++ b/files/en-us/web/api/webglrenderingcontext/deleteprogram/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.deleteProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.deleteProgram()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webglrenderingcontext/deleterenderbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/deleterenderbuffer/index.md index 7d35176eef25de9..302df3f076b85f2 100644 --- a/files/en-us/web/api/webglrenderingcontext/deleterenderbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/deleterenderbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.deleteRenderbuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.deleteRenderbuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webglrenderingcontext/deleteshader/index.md b/files/en-us/web/api/webglrenderingcontext/deleteshader/index.md index 3f75d1c077b0ac5..99f69c835c67ace 100644 --- a/files/en-us/web/api/webglrenderingcontext/deleteshader/index.md +++ b/files/en-us/web/api/webglrenderingcontext/deleteshader/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.deleteShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.deleteShader()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) marks a given {{domxref("WebGLShader")}} object for deletion. It will then be deleted whenever the diff --git a/files/en-us/web/api/webglrenderingcontext/deletetexture/index.md b/files/en-us/web/api/webglrenderingcontext/deletetexture/index.md index 5e07f6f6f6a3436..10815ba3b98b226 100644 --- a/files/en-us/web/api/webglrenderingcontext/deletetexture/index.md +++ b/files/en-us/web/api/webglrenderingcontext/deletetexture/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.deleteTexture --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.deleteTexture()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) deletes a given diff --git a/files/en-us/web/api/webglrenderingcontext/depthfunc/index.md b/files/en-us/web/api/webglrenderingcontext/depthfunc/index.md index 88de73a5f7462dd..c47c4e7b6fb1fe1 100644 --- a/files/en-us/web/api/webglrenderingcontext/depthfunc/index.md +++ b/files/en-us/web/api/webglrenderingcontext/depthfunc/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.depthFunc --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.depthFunc()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a function that compares incoming pixel depth to the current depth buffer value. diff --git a/files/en-us/web/api/webglrenderingcontext/depthmask/index.md b/files/en-us/web/api/webglrenderingcontext/depthmask/index.md index c8504764af5dd53..32a3179b15ce665 100644 --- a/files/en-us/web/api/webglrenderingcontext/depthmask/index.md +++ b/files/en-us/web/api/webglrenderingcontext/depthmask/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.depthMask --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.depthMask()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets whether writing into the depth buffer is enabled or disabled. diff --git a/files/en-us/web/api/webglrenderingcontext/depthrange/index.md b/files/en-us/web/api/webglrenderingcontext/depthrange/index.md index 3c3557db2769796..b05f678d401e746 100644 --- a/files/en-us/web/api/webglrenderingcontext/depthrange/index.md +++ b/files/en-us/web/api/webglrenderingcontext/depthrange/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.depthRange --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.depthRange()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies the depth range mapping from normalized device coordinates to window or viewport coordinates. diff --git a/files/en-us/web/api/webglrenderingcontext/detachshader/index.md b/files/en-us/web/api/webglrenderingcontext/detachshader/index.md index 1027532c91764a0..fff38121022b424 100644 --- a/files/en-us/web/api/webglrenderingcontext/detachshader/index.md +++ b/files/en-us/web/api/webglrenderingcontext/detachshader/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.detachShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLRenderingContext.detachShader()** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) detaches a previously attached {{domxref("WebGLShader")}} from a {{domxref("WebGLProgram")}}. diff --git a/files/en-us/web/api/webglrenderingcontext/disable/index.md b/files/en-us/web/api/webglrenderingcontext/disable/index.md index 9e70dfe31a43b0d..65036bcc7340658 100644 --- a/files/en-us/web/api/webglrenderingcontext/disable/index.md +++ b/files/en-us/web/api/webglrenderingcontext/disable/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.disable --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.disable()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) disables specific WebGL capabilities for this context. diff --git a/files/en-us/web/api/webglrenderingcontext/disablevertexattribarray/index.md b/files/en-us/web/api/webglrenderingcontext/disablevertexattribarray/index.md index 433f484fa098aff..547f629b1135c45 100644 --- a/files/en-us/web/api/webglrenderingcontext/disablevertexattribarray/index.md +++ b/files/en-us/web/api/webglrenderingcontext/disablevertexattribarray/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.disableVertexAttribArray --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.disableVertexAttribArray()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) turns the generic diff --git a/files/en-us/web/api/webglrenderingcontext/drawarrays/index.md b/files/en-us/web/api/webglrenderingcontext/drawarrays/index.md index ce07cd7d7c8ef0c..b132bf22d7c6e94 100644 --- a/files/en-us/web/api/webglrenderingcontext/drawarrays/index.md +++ b/files/en-us/web/api/webglrenderingcontext/drawarrays/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.drawArrays --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.drawArrays()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) renders primitives from array data. diff --git a/files/en-us/web/api/webglrenderingcontext/drawelements/index.md b/files/en-us/web/api/webglrenderingcontext/drawelements/index.md index 0368e3afcccd9f3..8ad2889a11bcc92 100644 --- a/files/en-us/web/api/webglrenderingcontext/drawelements/index.md +++ b/files/en-us/web/api/webglrenderingcontext/drawelements/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.drawElements --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.drawElements()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) renders primitives from array data. diff --git a/files/en-us/web/api/webglrenderingcontext/drawingbuffercolorspace/index.md b/files/en-us/web/api/webglrenderingcontext/drawingbuffercolorspace/index.md index e1ca518736cfd54..91972d6355b403e 100644 --- a/files/en-us/web/api/webglrenderingcontext/drawingbuffercolorspace/index.md +++ b/files/en-us/web/api/webglrenderingcontext/drawingbuffercolorspace/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLRenderingContext.drawingBufferColorSpace --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.drawingBufferColorSpace`** property specifies the color space of the WebGL drawing buffer. Along with the default (`srgb`), the `display-p3` color space can be used. diff --git a/files/en-us/web/api/webglrenderingcontext/drawingbufferheight/index.md b/files/en-us/web/api/webglrenderingcontext/drawingbufferheight/index.md index 23c8c1ea6b9ee58..9d9372a2af5bd46 100644 --- a/files/en-us/web/api/webglrenderingcontext/drawingbufferheight/index.md +++ b/files/en-us/web/api/webglrenderingcontext/drawingbufferheight/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLRenderingContext.drawingBufferHeight --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLRenderingContext.drawingBufferHeight`** property represents the actual height of the current drawing buffer. It should match the diff --git a/files/en-us/web/api/webglrenderingcontext/drawingbufferwidth/index.md b/files/en-us/web/api/webglrenderingcontext/drawingbufferwidth/index.md index 317f1bba97a9385..21ed3f35c6bdcc8 100644 --- a/files/en-us/web/api/webglrenderingcontext/drawingbufferwidth/index.md +++ b/files/en-us/web/api/webglrenderingcontext/drawingbufferwidth/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLRenderingContext.drawingBufferWidth --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLRenderingContext.drawingBufferWidth`** property represents the actual width of the current drawing buffer. It should match the diff --git a/files/en-us/web/api/webglrenderingcontext/enable/index.md b/files/en-us/web/api/webglrenderingcontext/enable/index.md index df02ac8c3724fe7..52e40136efd1ae5 100644 --- a/files/en-us/web/api/webglrenderingcontext/enable/index.md +++ b/files/en-us/web/api/webglrenderingcontext/enable/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.enable --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.enable()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) enables specific WebGL capabilities for this context. diff --git a/files/en-us/web/api/webglrenderingcontext/enablevertexattribarray/index.md b/files/en-us/web/api/webglrenderingcontext/enablevertexattribarray/index.md index 303b8cba33b24c8..f47217fd254bf2f 100644 --- a/files/en-us/web/api/webglrenderingcontext/enablevertexattribarray/index.md +++ b/files/en-us/web/api/webglrenderingcontext/enablevertexattribarray/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.enableVertexAttribArray --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The {{domxref("WebGLRenderingContext")}} method **`enableVertexAttribArray()`**, part of the [WebGL API](/en-US/docs/Web/API/WebGL_API), turns on the generic vertex diff --git a/files/en-us/web/api/webglrenderingcontext/finish/index.md b/files/en-us/web/api/webglrenderingcontext/finish/index.md index d270b92893d9b1b..f325f370181701f 100644 --- a/files/en-us/web/api/webglrenderingcontext/finish/index.md +++ b/files/en-us/web/api/webglrenderingcontext/finish/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.finish --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.finish()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) blocks execution until all previously called commands are finished. diff --git a/files/en-us/web/api/webglrenderingcontext/flush/index.md b/files/en-us/web/api/webglrenderingcontext/flush/index.md index 8e564eab90b1ac7..fa487d018ebbf2e 100644 --- a/files/en-us/web/api/webglrenderingcontext/flush/index.md +++ b/files/en-us/web/api/webglrenderingcontext/flush/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.flush --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.flush()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) empties different buffer commands, causing all commands to be executed as quickly as possible. diff --git a/files/en-us/web/api/webglrenderingcontext/framebufferrenderbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/framebufferrenderbuffer/index.md index d47c87f94839cd5..b17cc018e4aa05e 100644 --- a/files/en-us/web/api/webglrenderingcontext/framebufferrenderbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/framebufferrenderbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.framebufferRenderbuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.framebufferRenderbuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) attaches a diff --git a/files/en-us/web/api/webglrenderingcontext/framebuffertexture2d/index.md b/files/en-us/web/api/webglrenderingcontext/framebuffertexture2d/index.md index 3dbfea2ddcb44fe..31498c9322438f5 100644 --- a/files/en-us/web/api/webglrenderingcontext/framebuffertexture2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/framebuffertexture2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.framebufferTexture2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.framebufferTexture2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) attaches a texture to a diff --git a/files/en-us/web/api/webglrenderingcontext/frontface/index.md b/files/en-us/web/api/webglrenderingcontext/frontface/index.md index 5b45956da492316..d15cb3cbf6fb4a0 100644 --- a/files/en-us/web/api/webglrenderingcontext/frontface/index.md +++ b/files/en-us/web/api/webglrenderingcontext/frontface/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.frontFace --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.frontFace()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies whether polygons are front- or back-facing by setting a winding orientation. diff --git a/files/en-us/web/api/webglrenderingcontext/generatemipmap/index.md b/files/en-us/web/api/webglrenderingcontext/generatemipmap/index.md index f0507ff1c3457c2..f15b1e2b3731a25 100644 --- a/files/en-us/web/api/webglrenderingcontext/generatemipmap/index.md +++ b/files/en-us/web/api/webglrenderingcontext/generatemipmap/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.generateMipmap --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.generateMipmap()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) generates a set of mipmaps for a diff --git a/files/en-us/web/api/webglrenderingcontext/getactiveattrib/index.md b/files/en-us/web/api/webglrenderingcontext/getactiveattrib/index.md index fdf629d76e8044c..9ff951ac54bf481 100644 --- a/files/en-us/web/api/webglrenderingcontext/getactiveattrib/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getactiveattrib/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getActiveAttrib --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getActiveAttrib()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns a diff --git a/files/en-us/web/api/webglrenderingcontext/getactiveuniform/index.md b/files/en-us/web/api/webglrenderingcontext/getactiveuniform/index.md index 3ab920897d871b1..75158f0ebbe8267 100644 --- a/files/en-us/web/api/webglrenderingcontext/getactiveuniform/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getactiveuniform/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getActiveUniform --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getActiveUniform()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns a diff --git a/files/en-us/web/api/webglrenderingcontext/getattachedshaders/index.md b/files/en-us/web/api/webglrenderingcontext/getattachedshaders/index.md index 5556f9d411d3518..0bb5007f4fcd222 100644 --- a/files/en-us/web/api/webglrenderingcontext/getattachedshaders/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getattachedshaders/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getAttachedShaders --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getAttachedShaders()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns a list of diff --git a/files/en-us/web/api/webglrenderingcontext/getattriblocation/index.md b/files/en-us/web/api/webglrenderingcontext/getattriblocation/index.md index 3c641529bbb7414..ff6dab128945343 100644 --- a/files/en-us/web/api/webglrenderingcontext/getattriblocation/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getattriblocation/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getAttribLocation --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getAttribLocation()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns the location of an diff --git a/files/en-us/web/api/webglrenderingcontext/getbufferparameter/index.md b/files/en-us/web/api/webglrenderingcontext/getbufferparameter/index.md index e174ec39efac49a..ab19f50feecdae4 100644 --- a/files/en-us/web/api/webglrenderingcontext/getbufferparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getbufferparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getBufferParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getBufferParameter()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns information about the diff --git a/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md b/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md index 03c6949758b038d..1746ab91fab24c4 100644 --- a/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getContextAttributes --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getContextAttributes()`** method returns a `WebGLContextAttributes` object that contains the actual context diff --git a/files/en-us/web/api/webglrenderingcontext/geterror/index.md b/files/en-us/web/api/webglrenderingcontext/geterror/index.md index a57745991890db2..8c052cb797005c0 100644 --- a/files/en-us/web/api/webglrenderingcontext/geterror/index.md +++ b/files/en-us/web/api/webglrenderingcontext/geterror/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getError --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getError()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns error information. diff --git a/files/en-us/web/api/webglrenderingcontext/getextension/index.md b/files/en-us/web/api/webglrenderingcontext/getextension/index.md index 84027c6d2390141..d3fa97e39517458 100644 --- a/files/en-us/web/api/webglrenderingcontext/getextension/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getextension/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getExtension --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getExtension()`** method enables a [WebGL](/en-US/docs/Web/API/WebGL_API) extension. diff --git a/files/en-us/web/api/webglrenderingcontext/getframebufferattachmentparameter/index.md b/files/en-us/web/api/webglrenderingcontext/getframebufferattachmentparameter/index.md index 120b733e1eb75e6..77298018d98fa00 100644 --- a/files/en-us/web/api/webglrenderingcontext/getframebufferattachmentparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getframebufferattachmentparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getFramebufferAttachmentParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getFramebufferAttachmentParameter()`** diff --git a/files/en-us/web/api/webglrenderingcontext/getparameter/index.md b/files/en-us/web/api/webglrenderingcontext/getparameter/index.md index b881e055c2b384c..b826458f2b11e86 100644 --- a/files/en-us/web/api/webglrenderingcontext/getparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getParameter()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns a value for the passed parameter name. diff --git a/files/en-us/web/api/webglrenderingcontext/getprograminfolog/index.md b/files/en-us/web/api/webglrenderingcontext/getprograminfolog/index.md index d50885b50cea9d1..ef78b57be91076e 100644 --- a/files/en-us/web/api/webglrenderingcontext/getprograminfolog/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getprograminfolog/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getProgramInfoLog --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLRenderingContext.getProgramInfoLog** returns the information log for the specified {{domxref("WebGLProgram")}} object. It contains errors that diff --git a/files/en-us/web/api/webglrenderingcontext/getprogramparameter/index.md b/files/en-us/web/api/webglrenderingcontext/getprogramparameter/index.md index e751be25574ed6b..7dc352222d9b555 100644 --- a/files/en-us/web/api/webglrenderingcontext/getprogramparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getprogramparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getProgramParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getProgramParameter()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns information about the diff --git a/files/en-us/web/api/webglrenderingcontext/getrenderbufferparameter/index.md b/files/en-us/web/api/webglrenderingcontext/getrenderbufferparameter/index.md index fd8cfd9e7bc2873..648624f9b5ae2f6 100644 --- a/files/en-us/web/api/webglrenderingcontext/getrenderbufferparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getrenderbufferparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getRenderbufferParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getRenderbufferParameter()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns information diff --git a/files/en-us/web/api/webglrenderingcontext/getshaderinfolog/index.md b/files/en-us/web/api/webglrenderingcontext/getshaderinfolog/index.md index 4c6c8102be9f416..1b55496da820c7a 100644 --- a/files/en-us/web/api/webglrenderingcontext/getshaderinfolog/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getshaderinfolog/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getShaderInfoLog --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLRenderingContext.getShaderInfoLog** returns the information log for the specified {{domxref("WebGLShader")}} object. It contains warnings, debugging and diff --git a/files/en-us/web/api/webglrenderingcontext/getshaderparameter/index.md b/files/en-us/web/api/webglrenderingcontext/getshaderparameter/index.md index 807680c985697bf..53bdcd72b64894c 100644 --- a/files/en-us/web/api/webglrenderingcontext/getshaderparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getshaderparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getShaderParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getShaderParameter()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns information about the diff --git a/files/en-us/web/api/webglrenderingcontext/getshaderprecisionformat/index.md b/files/en-us/web/api/webglrenderingcontext/getshaderprecisionformat/index.md index f3654b7bc72e422..41c85f206d461f8 100644 --- a/files/en-us/web/api/webglrenderingcontext/getshaderprecisionformat/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getshaderprecisionformat/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getShaderPrecisionFormat --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getShaderPrecisionFormat()`** method of diff --git a/files/en-us/web/api/webglrenderingcontext/getshadersource/index.md b/files/en-us/web/api/webglrenderingcontext/getshadersource/index.md index ff66c8db8d21a99..9f8db726b9e7085 100644 --- a/files/en-us/web/api/webglrenderingcontext/getshadersource/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getshadersource/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getShaderSource --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getShaderSource()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns the source code of a diff --git a/files/en-us/web/api/webglrenderingcontext/getsupportedextensions/index.md b/files/en-us/web/api/webglrenderingcontext/getsupportedextensions/index.md index ff61e619afc9b7e..d629c37347c38cb 100644 --- a/files/en-us/web/api/webglrenderingcontext/getsupportedextensions/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getsupportedextensions/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getSupportedExtensions --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getSupportedExtensions()`** method returns a list of all the supported [WebGL](/en-US/docs/Web/API/WebGL_API) diff --git a/files/en-us/web/api/webglrenderingcontext/gettexparameter/index.md b/files/en-us/web/api/webglrenderingcontext/gettexparameter/index.md index 7e3b94ffac64209..583fe849c482fb7 100644 --- a/files/en-us/web/api/webglrenderingcontext/gettexparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/gettexparameter/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getTexParameter --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getTexParameter()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns information about the diff --git a/files/en-us/web/api/webglrenderingcontext/getuniform/index.md b/files/en-us/web/api/webglrenderingcontext/getuniform/index.md index 94e2c819c322036..9d82d498b29b26a 100644 --- a/files/en-us/web/api/webglrenderingcontext/getuniform/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getuniform/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getUniform --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getUniform()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns the value of a uniform variable at a given location. diff --git a/files/en-us/web/api/webglrenderingcontext/getuniformlocation/index.md b/files/en-us/web/api/webglrenderingcontext/getuniformlocation/index.md index b2e87eaec0048c9..3197ebf9780bc9a 100644 --- a/files/en-us/web/api/webglrenderingcontext/getuniformlocation/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getuniformlocation/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getUniformLocation --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} Part of the [WebGL API](/en-US/docs/Web/API/WebGL_API), the {{domxref("WebGLRenderingContext")}} method **`getUniformLocation()`** returns the location of a diff --git a/files/en-us/web/api/webglrenderingcontext/getvertexattrib/index.md b/files/en-us/web/api/webglrenderingcontext/getvertexattrib/index.md index 7d9209d2777747b..cfb9daebc3005fe 100644 --- a/files/en-us/web/api/webglrenderingcontext/getvertexattrib/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getvertexattrib/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getVertexAttrib --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getVertexAttrib()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns information about a vertex diff --git a/files/en-us/web/api/webglrenderingcontext/getvertexattriboffset/index.md b/files/en-us/web/api/webglrenderingcontext/getvertexattriboffset/index.md index 156da395ec1c805..d1f721a26137f96 100644 --- a/files/en-us/web/api/webglrenderingcontext/getvertexattriboffset/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getvertexattriboffset/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.getVertexAttribOffset --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.getVertexAttribOffset()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns the address of a diff --git a/files/en-us/web/api/webglrenderingcontext/hint/index.md b/files/en-us/web/api/webglrenderingcontext/hint/index.md index 876edf66853c001..a3a27f5e085e215 100644 --- a/files/en-us/web/api/webglrenderingcontext/hint/index.md +++ b/files/en-us/web/api/webglrenderingcontext/hint/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.hint --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.hint()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies hints for certain behaviors. The interpretation of these hints depend on the implementation. diff --git a/files/en-us/web/api/webglrenderingcontext/index.md b/files/en-us/web/api/webglrenderingcontext/index.md index 313c63826ef5819..e6f198c2c06ec14 100644 --- a/files/en-us/web/api/webglrenderingcontext/index.md +++ b/files/en-us/web/api/webglrenderingcontext/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLRenderingContext --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML {{HTMLElement("canvas")}} element. diff --git a/files/en-us/web/api/webglrenderingcontext/isbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/isbuffer/index.md index 76661dc9c33f765..27840eaff553595 100644 --- a/files/en-us/web/api/webglrenderingcontext/isbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/isbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isBuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isBuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed {{domxref("WebGLBuffer")}} is valid and `false` otherwise. diff --git a/files/en-us/web/api/webglrenderingcontext/iscontextlost/index.md b/files/en-us/web/api/webglrenderingcontext/iscontextlost/index.md index 14cb43d2dc78ec4..1a55dea0a1604f4 100644 --- a/files/en-us/web/api/webglrenderingcontext/iscontextlost/index.md +++ b/files/en-us/web/api/webglrenderingcontext/iscontextlost/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isContextLost --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isContextLost()`** method returns a diff --git a/files/en-us/web/api/webglrenderingcontext/isenabled/index.md b/files/en-us/web/api/webglrenderingcontext/isenabled/index.md index a39b969d41fc688..e917ad0fc201f04 100644 --- a/files/en-us/web/api/webglrenderingcontext/isenabled/index.md +++ b/files/en-us/web/api/webglrenderingcontext/isenabled/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isEnabled --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isEnabled()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) tests whether a specific WebGL capability is enabled or not for this context. diff --git a/files/en-us/web/api/webglrenderingcontext/isframebuffer/index.md b/files/en-us/web/api/webglrenderingcontext/isframebuffer/index.md index ec72948f37acc05..7c05e48f284ac73 100644 --- a/files/en-us/web/api/webglrenderingcontext/isframebuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/isframebuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isFramebuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isFramebuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the diff --git a/files/en-us/web/api/webglrenderingcontext/isprogram/index.md b/files/en-us/web/api/webglrenderingcontext/isprogram/index.md index 3ebdd6524ac740d..8410b4199725d81 100644 --- a/files/en-us/web/api/webglrenderingcontext/isprogram/index.md +++ b/files/en-us/web/api/webglrenderingcontext/isprogram/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isProgram()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed {{domxref("WebGLProgram")}} is valid, `false` otherwise. diff --git a/files/en-us/web/api/webglrenderingcontext/isrenderbuffer/index.md b/files/en-us/web/api/webglrenderingcontext/isrenderbuffer/index.md index 0f68f65c5d12072..c5cc8954190da16 100644 --- a/files/en-us/web/api/webglrenderingcontext/isrenderbuffer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/isrenderbuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isRenderbuffer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isRenderbuffer()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the diff --git a/files/en-us/web/api/webglrenderingcontext/isshader/index.md b/files/en-us/web/api/webglrenderingcontext/isshader/index.md index b3045d7c17a2bba..88e7ce0f67bd7e3 100644 --- a/files/en-us/web/api/webglrenderingcontext/isshader/index.md +++ b/files/en-us/web/api/webglrenderingcontext/isshader/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isShader()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed {{domxref("WebGLShader")}} is valid, `false` otherwise. diff --git a/files/en-us/web/api/webglrenderingcontext/istexture/index.md b/files/en-us/web/api/webglrenderingcontext/istexture/index.md index 788f1c8b8b2b2c0..684e82561ef47c6 100644 --- a/files/en-us/web/api/webglrenderingcontext/istexture/index.md +++ b/files/en-us/web/api/webglrenderingcontext/istexture/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.isTexture --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.isTexture()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) returns `true` if the passed {{domxref("WebGLTexture")}} is valid and `false` otherwise. diff --git a/files/en-us/web/api/webglrenderingcontext/linewidth/index.md b/files/en-us/web/api/webglrenderingcontext/linewidth/index.md index 9778dea19676771..b68403f92bd785a 100644 --- a/files/en-us/web/api/webglrenderingcontext/linewidth/index.md +++ b/files/en-us/web/api/webglrenderingcontext/linewidth/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.lineWidth --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.lineWidth()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the line width of rasterized lines. diff --git a/files/en-us/web/api/webglrenderingcontext/linkprogram/index.md b/files/en-us/web/api/webglrenderingcontext/linkprogram/index.md index 398ceb8efc3b08b..a88224129c2ecd9 100644 --- a/files/en-us/web/api/webglrenderingcontext/linkprogram/index.md +++ b/files/en-us/web/api/webglrenderingcontext/linkprogram/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.linkProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The {{domxref("WebGLRenderingContext")}} interface's **`linkProgram()`** method links a given diff --git a/files/en-us/web/api/webglrenderingcontext/makexrcompatible/index.md b/files/en-us/web/api/webglrenderingcontext/makexrcompatible/index.md index 98316343cb89c58..01358dd71c3cf19 100644 --- a/files/en-us/web/api/webglrenderingcontext/makexrcompatible/index.md +++ b/files/en-us/web/api/webglrenderingcontext/makexrcompatible/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.makeXRCompatible --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The {{domxref("WebGLRenderingContext")}} method **`makeXRCompatible()`** ensures that the rendering context diff --git a/files/en-us/web/api/webglrenderingcontext/pixelstorei/index.md b/files/en-us/web/api/webglrenderingcontext/pixelstorei/index.md index a1cf74d4ebb3246..8a66b400defa041 100644 --- a/files/en-us/web/api/webglrenderingcontext/pixelstorei/index.md +++ b/files/en-us/web/api/webglrenderingcontext/pixelstorei/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.pixelStorei --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.pixelStorei()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies the pixel storage modes. diff --git a/files/en-us/web/api/webglrenderingcontext/polygonoffset/index.md b/files/en-us/web/api/webglrenderingcontext/polygonoffset/index.md index 42db1b8efa35338..352e5bef5a5bcb6 100644 --- a/files/en-us/web/api/webglrenderingcontext/polygonoffset/index.md +++ b/files/en-us/web/api/webglrenderingcontext/polygonoffset/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.polygonOffset --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.polygonOffset()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies the scale factors and diff --git a/files/en-us/web/api/webglrenderingcontext/readpixels/index.md b/files/en-us/web/api/webglrenderingcontext/readpixels/index.md index 62f76456ce497bc..ba15664435b9b74 100644 --- a/files/en-us/web/api/webglrenderingcontext/readpixels/index.md +++ b/files/en-us/web/api/webglrenderingcontext/readpixels/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.readPixels --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.readPixels()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) reads a block of pixels from a specified rectangle of the current color framebuffer into a {{jsxref("TypedArray")}} or a {{jsxref("DataView")}} object. diff --git a/files/en-us/web/api/webglrenderingcontext/renderbufferstorage/index.md b/files/en-us/web/api/webglrenderingcontext/renderbufferstorage/index.md index 95d2e739ca1df09..f9532ec2bd1b80a 100644 --- a/files/en-us/web/api/webglrenderingcontext/renderbufferstorage/index.md +++ b/files/en-us/web/api/webglrenderingcontext/renderbufferstorage/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.renderbufferStorage --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.renderbufferStorage()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) creates and initializes a diff --git a/files/en-us/web/api/webglrenderingcontext/samplecoverage/index.md b/files/en-us/web/api/webglrenderingcontext/samplecoverage/index.md index 8f2d53c8237cc32..70764c66cc97f74 100644 --- a/files/en-us/web/api/webglrenderingcontext/samplecoverage/index.md +++ b/files/en-us/web/api/webglrenderingcontext/samplecoverage/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.sampleCoverage --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.sampleCoverage()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies multi-sample coverage diff --git a/files/en-us/web/api/webglrenderingcontext/scissor/index.md b/files/en-us/web/api/webglrenderingcontext/scissor/index.md index f5e1803a9f87565..5e45875b9a9d7d6 100644 --- a/files/en-us/web/api/webglrenderingcontext/scissor/index.md +++ b/files/en-us/web/api/webglrenderingcontext/scissor/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.scissor --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.scissor()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets a scissor box, which limits the drawing to a specified rectangle. diff --git a/files/en-us/web/api/webglrenderingcontext/shadersource/index.md b/files/en-us/web/api/webglrenderingcontext/shadersource/index.md index 97bfb6aea3375e3..768803bbf242b1c 100644 --- a/files/en-us/web/api/webglrenderingcontext/shadersource/index.md +++ b/files/en-us/web/api/webglrenderingcontext/shadersource/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.shaderSource --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.shaderSource()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the source code of a {{domxref("WebGLShader")}}. diff --git a/files/en-us/web/api/webglrenderingcontext/stencilfunc/index.md b/files/en-us/web/api/webglrenderingcontext/stencilfunc/index.md index 8d1367450fa4629..497185d06be1fc7 100644 --- a/files/en-us/web/api/webglrenderingcontext/stencilfunc/index.md +++ b/files/en-us/web/api/webglrenderingcontext/stencilfunc/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.stencilFunc --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.stencilFunc()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the front and back function and reference value for stencil testing. diff --git a/files/en-us/web/api/webglrenderingcontext/stencilfuncseparate/index.md b/files/en-us/web/api/webglrenderingcontext/stencilfuncseparate/index.md index 3ac5a7dbb521fef..0e5ce9275397287 100644 --- a/files/en-us/web/api/webglrenderingcontext/stencilfuncseparate/index.md +++ b/files/en-us/web/api/webglrenderingcontext/stencilfuncseparate/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.stencilFuncSeparate --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.stencilFuncSeparate()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the front and/or back diff --git a/files/en-us/web/api/webglrenderingcontext/stencilmask/index.md b/files/en-us/web/api/webglrenderingcontext/stencilmask/index.md index e629b60bce10976..554432b198a277c 100644 --- a/files/en-us/web/api/webglrenderingcontext/stencilmask/index.md +++ b/files/en-us/web/api/webglrenderingcontext/stencilmask/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.stencilMask --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.stencilMask()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) controls enabling and disabling of both the front and back writing of individual bits in the stencil planes. diff --git a/files/en-us/web/api/webglrenderingcontext/stencilmaskseparate/index.md b/files/en-us/web/api/webglrenderingcontext/stencilmaskseparate/index.md index 2bd920ca666800a..c0893d282f2ab51 100644 --- a/files/en-us/web/api/webglrenderingcontext/stencilmaskseparate/index.md +++ b/files/en-us/web/api/webglrenderingcontext/stencilmaskseparate/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.stencilMaskSeparate --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.stencilMaskSeparate()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) controls enabling and diff --git a/files/en-us/web/api/webglrenderingcontext/stencilop/index.md b/files/en-us/web/api/webglrenderingcontext/stencilop/index.md index 727c39020825022..ba7f0d8034e4c66 100644 --- a/files/en-us/web/api/webglrenderingcontext/stencilop/index.md +++ b/files/en-us/web/api/webglrenderingcontext/stencilop/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.stencilOp --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.stencilOp()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets both the front and back-facing stencil test actions. diff --git a/files/en-us/web/api/webglrenderingcontext/stencilopseparate/index.md b/files/en-us/web/api/webglrenderingcontext/stencilopseparate/index.md index c87faf08886510b..dcf5941562d1fd8 100644 --- a/files/en-us/web/api/webglrenderingcontext/stencilopseparate/index.md +++ b/files/en-us/web/api/webglrenderingcontext/stencilopseparate/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.stencilOpSeparate --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.stencilOpSeparate()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the front and/or diff --git a/files/en-us/web/api/webglrenderingcontext/teximage2d/index.md b/files/en-us/web/api/webglrenderingcontext/teximage2d/index.md index a8dd03963f55275..a553cbe3cc42779 100644 --- a/files/en-us/web/api/webglrenderingcontext/teximage2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/teximage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.texImage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.texImage2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a two-dimensional texture image. diff --git a/files/en-us/web/api/webglrenderingcontext/texparameter/index.md b/files/en-us/web/api/webglrenderingcontext/texparameter/index.md index f3f617a80fd83bc..dbd6daa39f41163 100644 --- a/files/en-us/web/api/webglrenderingcontext/texparameter/index.md +++ b/files/en-us/web/api/webglrenderingcontext/texparameter/index.md @@ -8,7 +8,7 @@ browser-compat: - api.WebGLRenderingContext.texParameteri --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.texParameter[fi]()`** methods of the [WebGL API](/en-US/docs/Web/API/WebGL_API) set texture parameters. diff --git a/files/en-us/web/api/webglrenderingcontext/texsubimage2d/index.md b/files/en-us/web/api/webglrenderingcontext/texsubimage2d/index.md index eb26e99ea729769..3aa201bf06e40d0 100644 --- a/files/en-us/web/api/webglrenderingcontext/texsubimage2d/index.md +++ b/files/en-us/web/api/webglrenderingcontext/texsubimage2d/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.texSubImage2D --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.texSubImage2D()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specifies a sub-rectangle of the diff --git a/files/en-us/web/api/webglrenderingcontext/uniform/index.md b/files/en-us/web/api/webglrenderingcontext/uniform/index.md index 76d158db23822a9..ccf2b657544bb9f 100644 --- a/files/en-us/web/api/webglrenderingcontext/uniform/index.md +++ b/files/en-us/web/api/webglrenderingcontext/uniform/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.uniform1f --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.uniform[1234][fi][v]()`** methods of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specify values of uniform diff --git a/files/en-us/web/api/webglrenderingcontext/uniformmatrix/index.md b/files/en-us/web/api/webglrenderingcontext/uniformmatrix/index.md index 0e93d85e1bf5350..f70617463cf5b2a 100644 --- a/files/en-us/web/api/webglrenderingcontext/uniformmatrix/index.md +++ b/files/en-us/web/api/webglrenderingcontext/uniformmatrix/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.uniformMatrix2fv --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.uniformMatrix[234]fv()`** methods of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specify matrix values for diff --git a/files/en-us/web/api/webglrenderingcontext/unpackcolorspace/index.md b/files/en-us/web/api/webglrenderingcontext/unpackcolorspace/index.md index b580ee00fa1ead3..165e0fbd5cbb8cf 100644 --- a/files/en-us/web/api/webglrenderingcontext/unpackcolorspace/index.md +++ b/files/en-us/web/api/webglrenderingcontext/unpackcolorspace/index.md @@ -8,7 +8,7 @@ status: browser-compat: api.WebGLRenderingContext.unpackColorSpace --- -{{APIRef("WebGL")}}{{SeeCompatTable}} +{{APIRef("WebGL")}}{{SeeCompatTable}}{{AvailableInWorkers}} The **`WebGLRenderingContext.unpackColorSpace`** property specifies the color space to convert to when importing textures. Along with the default (`srgb`), the `display-p3` color space can be used. diff --git a/files/en-us/web/api/webglrenderingcontext/useprogram/index.md b/files/en-us/web/api/webglrenderingcontext/useprogram/index.md index 01a2b6eb4f00f74..7e62165c804808a 100644 --- a/files/en-us/web/api/webglrenderingcontext/useprogram/index.md +++ b/files/en-us/web/api/webglrenderingcontext/useprogram/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.useProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.useProgram()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the specified {{domxref("WebGLProgram")}} as part of the current rendering state. diff --git a/files/en-us/web/api/webglrenderingcontext/validateprogram/index.md b/files/en-us/web/api/webglrenderingcontext/validateprogram/index.md index 27c7d8b0391830f..df12233f1de55e4 100644 --- a/files/en-us/web/api/webglrenderingcontext/validateprogram/index.md +++ b/files/en-us/web/api/webglrenderingcontext/validateprogram/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.validateProgram --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.validateProgram()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) validates a diff --git a/files/en-us/web/api/webglrenderingcontext/vertexattrib/index.md b/files/en-us/web/api/webglrenderingcontext/vertexattrib/index.md index e92e0e2fc748d8e..ba788c0dbc0271d 100644 --- a/files/en-us/web/api/webglrenderingcontext/vertexattrib/index.md +++ b/files/en-us/web/api/webglrenderingcontext/vertexattrib/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.vertexAttrib1f --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.vertexAttrib[1234]f[v]()`** methods of the [WebGL API](/en-US/docs/Web/API/WebGL_API) specify constant diff --git a/files/en-us/web/api/webglrenderingcontext/vertexattribpointer/index.md b/files/en-us/web/api/webglrenderingcontext/vertexattribpointer/index.md index 57b52c3bd5d0dce..55e69f6668d3764 100644 --- a/files/en-us/web/api/webglrenderingcontext/vertexattribpointer/index.md +++ b/files/en-us/web/api/webglrenderingcontext/vertexattribpointer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.vertexAttribPointer --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.vertexAttribPointer()`** method of the diff --git a/files/en-us/web/api/webglrenderingcontext/viewport/index.md b/files/en-us/web/api/webglrenderingcontext/viewport/index.md index 31d6b22e4637267..19d94d1aa1422fa 100644 --- a/files/en-us/web/api/webglrenderingcontext/viewport/index.md +++ b/files/en-us/web/api/webglrenderingcontext/viewport/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.WebGLRenderingContext.viewport --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLRenderingContext.viewport()`** method of the [WebGL API](/en-US/docs/Web/API/WebGL_API) sets the viewport, which specifies the affine transformation of x and y from normalized device coordinates to window diff --git a/files/en-us/web/api/webglsampler/index.md b/files/en-us/web/api/webglsampler/index.md index 3baf766e37e72c2..70b8c268daee302 100644 --- a/files/en-us/web/api/webglsampler/index.md +++ b/files/en-us/web/api/webglsampler/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLSampler --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLSampler`** interface is part of the [WebGL 2](/en-US/docs/Web/API/WebGL_API) API and stores sampling parameters for {{domxref("WebGLTexture")}} access inside of a shader. diff --git a/files/en-us/web/api/webglshader/index.md b/files/en-us/web/api/webglshader/index.md index 95853cc9ed83623..c880fc291fa9561 100644 --- a/files/en-us/web/api/webglshader/index.md +++ b/files/en-us/web/api/webglshader/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLShader --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLShader** is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and can either be a vertex or a fragment shader. A {{domxref("WebGLProgram")}} requires both types of shaders. diff --git a/files/en-us/web/api/webglshaderprecisionformat/index.md b/files/en-us/web/api/webglshaderprecisionformat/index.md index 7f748adf0ae6efe..720d864e00befcb 100644 --- a/files/en-us/web/api/webglshaderprecisionformat/index.md +++ b/files/en-us/web/api/webglshaderprecisionformat/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLShaderPrecisionFormat --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLShaderPrecisionFormat** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents the information returned by calling the {{domxref("WebGLRenderingContext.getShaderPrecisionFormat()")}} method. diff --git a/files/en-us/web/api/webglshaderprecisionformat/precision/index.md b/files/en-us/web/api/webglshaderprecisionformat/precision/index.md index 988e7ffc143a435..7aab0e6d18287e2 100644 --- a/files/en-us/web/api/webglshaderprecisionformat/precision/index.md +++ b/files/en-us/web/api/webglshaderprecisionformat/precision/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLShaderPrecisionFormat.precision --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLShaderPrecisionFormat.precision`** property returns the number of bits of precision that can be represented. diff --git a/files/en-us/web/api/webglshaderprecisionformat/rangemax/index.md b/files/en-us/web/api/webglshaderprecisionformat/rangemax/index.md index 453ad6cb4965a63..7302e1152947406 100644 --- a/files/en-us/web/api/webglshaderprecisionformat/rangemax/index.md +++ b/files/en-us/web/api/webglshaderprecisionformat/rangemax/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLShaderPrecisionFormat.rangeMax --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLShaderPrecisionFormat.rangeMax`** property returns the base 2 log of the absolute value of the maximum value that can be represented. diff --git a/files/en-us/web/api/webglshaderprecisionformat/rangemin/index.md b/files/en-us/web/api/webglshaderprecisionformat/rangemin/index.md index a2d9cb8c1bf0c37..e5046301aaac873 100644 --- a/files/en-us/web/api/webglshaderprecisionformat/rangemin/index.md +++ b/files/en-us/web/api/webglshaderprecisionformat/rangemin/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.WebGLShaderPrecisionFormat.rangeMin --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The read-only **`WebGLShaderPrecisionFormat.rangeMin`** property returns the base 2 log of the absolute value of the minimum value that can be represented. diff --git a/files/en-us/web/api/webglsync/index.md b/files/en-us/web/api/webglsync/index.md index 7ccf245596be41e..8a032d646ea6319 100644 --- a/files/en-us/web/api/webglsync/index.md +++ b/files/en-us/web/api/webglsync/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLSync --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLSync`** interface is part of the [WebGL 2](/en-US/docs/Web/API/WebGL_API) API and is used to synchronize activities between the GPU and the application. diff --git a/files/en-us/web/api/webgltexture/index.md b/files/en-us/web/api/webgltexture/index.md index 39b8fbe4bd9c02e..76861bddf410352 100644 --- a/files/en-us/web/api/webgltexture/index.md +++ b/files/en-us/web/api/webgltexture/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLTexture --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLTexture** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents an opaque texture object providing storage and state for texturing operations. diff --git a/files/en-us/web/api/webgltransformfeedback/index.md b/files/en-us/web/api/webgltransformfeedback/index.md index 7e56f635806aa03..79f8b643cea35ac 100644 --- a/files/en-us/web/api/webgltransformfeedback/index.md +++ b/files/en-us/web/api/webgltransformfeedback/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLTransformFeedback --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLTransformFeedback`** interface is part of the [WebGL 2](/en-US/docs/Web/API/WebGL_API) API and enables transform feedback, which is the process of capturing primitives generated by vertex processing. It allows to preserve the post-transform rendering state of an object and resubmit this data multiple times. diff --git a/files/en-us/web/api/webgluniformlocation/index.md b/files/en-us/web/api/webgluniformlocation/index.md index abfd52e7f745e35..7aa69f61837fb65 100644 --- a/files/en-us/web/api/webgluniformlocation/index.md +++ b/files/en-us/web/api/webgluniformlocation/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLUniformLocation --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **WebGLUniformLocation** interface is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and represents the location of a uniform variable in a shader program. diff --git a/files/en-us/web/api/webglvertexarrayobject/index.md b/files/en-us/web/api/webglvertexarrayobject/index.md index 51ae4978961ed51..fd702bf106ed71d 100644 --- a/files/en-us/web/api/webglvertexarrayobject/index.md +++ b/files/en-us/web/api/webglvertexarrayobject/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.WebGLVertexArrayObject --- -{{APIRef("WebGL")}} +{{APIRef("WebGL")}}{{AvailableInWorkers}} The **`WebGLVertexArrayObject`** interface is part of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API), represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data. From a5e089d79bf681e27fc6bdb9e4026b2489ffa4d9 Mon Sep 17 00:00:00 2001 From: Estelle Weyl Date: Fri, 27 Sep 2024 22:34:49 -0700 Subject: [PATCH 10/18] New pages: htmloptionscollection (#35982) * New pages: htmloptionscollection * remove refect word * Apply suggestions from code review Co-authored-by: Joshua Chen * edits per review * Update index.md * Update files/en-us/web/api/htmloptionscollection/selectedindex/index.md --------- Co-authored-by: Joshua Chen --- .../api/htmloptionscollection/add/index.md | 67 +++++++++++++++++++ .../web/api/htmloptionscollection/index.md | 13 +++- .../api/htmloptionscollection/length/index.md | 43 ++++++++++++ .../api/htmloptionscollection/remove/index.md | 52 ++++++++++++++ .../selectedindex/index.md | 42 ++++++++++++ .../htmlselectelement/selectedindex/index.md | 5 +- 6 files changed, 216 insertions(+), 6 deletions(-) create mode 100644 files/en-us/web/api/htmloptionscollection/add/index.md create mode 100644 files/en-us/web/api/htmloptionscollection/length/index.md create mode 100644 files/en-us/web/api/htmloptionscollection/remove/index.md create mode 100644 files/en-us/web/api/htmloptionscollection/selectedindex/index.md diff --git a/files/en-us/web/api/htmloptionscollection/add/index.md b/files/en-us/web/api/htmloptionscollection/add/index.md new file mode 100644 index 000000000000000..f0e3d23d613c721 --- /dev/null +++ b/files/en-us/web/api/htmloptionscollection/add/index.md @@ -0,0 +1,67 @@ +--- +title: "HTMLOptionsCollection: add() method" +short-title: add() +slug: Web/API/HTMLOptionsCollection/add +page-type: web-api-instance-method +browser-compat: api.HTMLOptionsCollection.add +--- + +{{APIRef("HTML DOM")}} + +The **`add()`** method of the {{DOMxRef("HTMLOptionsCollection")}} interface adds an {{domxref("HTMLOptionElement")}} or {{domxref("HTMLOptGroupElement")}} to this `HTMLOptionsCollection`. + +## Syntax + +```js-nolint +add(item) +add(item, before) +``` + +### Parameters + +- `item` + - : An {{domxref("HTMLOptionElement")}} or {{domxref("HTMLOptGroupElement")}}. +- `before` {{optional_inline}} + - : An element of the collection, or a numeric 0-based index representing the element that the `item` should be inserted before. If omitted, `null`, or the index does not exist, the new element is appended to the end of the collection. + +### Return value + +None ({{jsxref("undefined")}}). + +### Exceptions + +- `HierarchyRequestError` {{DOMxRef("DOMException")}} + - : Thrown if the `item` passed to the method is an ancestor of the element into which it is to be inserted. + +## Description + +By default, the `add()` appends the {{HTMLelement("option")}} or {{HTMLelement("optgroup")}} passed as the parameter to the end of the collection. You can define where the added `` should be placed by specifying the `before` parameter. The `before` is the `` will be appended as the last element in the collection, outside of any {{HTMLelement("optgroup")}}. If the `` element can only contain `` elements only. In other words, attempting to add an `HTMLOptGroupElement` before an `` may silently fail if the ``. + +## Examples + +```js +const optionList = document.querySelector("select").options; +const firstOption = document.createElement("option"); +firstOption.text = "new item"; +optionList.add(firstOption, 0); // added as the first item +optionList.add(optionList[0]); // moves the first item to the end +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{HTMLElement("select")}} +- {{DOMxRef("HTMLOptionsCollection.remove")}} +- {{DOMxRef("HTMLOptionsCollection.length")}} +- {{DOMxRef("HTMLOptionsCollection.selectedIndex")}} diff --git a/files/en-us/web/api/htmloptionscollection/index.md b/files/en-us/web/api/htmloptionscollection/index.md index b2900da464ba54c..7f8b356a2f01635 100644 --- a/files/en-us/web/api/htmloptionscollection/index.md +++ b/files/en-us/web/api/htmloptionscollection/index.md @@ -13,13 +13,20 @@ The **`HTMLOptionsCollection`** interface represents a collection of [`