From f05c411dd092def88ae7920a22a935f938caf39c Mon Sep 17 00:00:00 2001 From: Eng Zer Jun Date: Thu, 4 Jun 2026 12:51:12 +0800 Subject: [PATCH] Add optional annotation to parameters in FontFaceSet methods This commit updates the following pages: - https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check - https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach - https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load Signed-off-by: Eng Zer Jun --- files/en-us/web/api/fontfaceset/check/index.md | 2 +- files/en-us/web/api/fontfaceset/foreach/index.md | 2 +- files/en-us/web/api/fontfaceset/load/index.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/api/fontfaceset/check/index.md b/files/en-us/web/api/fontfaceset/check/index.md index d11b408ee4d6402..b11b67bad46b353 100644 --- a/files/en-us/web/api/fontfaceset/check/index.md +++ b/files/en-us/web/api/fontfaceset/check/index.md @@ -24,7 +24,7 @@ check(font, text) - `font` - : a font specification using the syntax for the CSS {{cssxref("font")}} property, for example `"italic bold 16px Roboto"` -- `text` +- `text` {{optional_inline}} - : limit the font faces to those whose Unicode range contains at least one of the characters in text. This [does not check for individual glyph coverage](https://lists.w3.org/Archives/Public/www-style/2015Aug/0330.html). ### Return value diff --git a/files/en-us/web/api/fontfaceset/foreach/index.md b/files/en-us/web/api/fontfaceset/foreach/index.md index 9b064bc53abe34b..1e3890b791d681a 100644 --- a/files/en-us/web/api/fontfaceset/foreach/index.md +++ b/files/en-us/web/api/fontfaceset/foreach/index.md @@ -25,7 +25,7 @@ forEach(callbackFn, thisArg) - : The current element being processed in the `FontFaceSet`. As there are no keys in a `FontFaceSet`, the value is passed for both arguments. - `set` - : The `FontFaceSet` which `forEach()` was called on. -- `thisArg` +- `thisArg` {{optional_inline}} - : Value to use as [`this`](/en-US/docs/Web/JavaScript/Reference/Operators/this) when executing `callbackFn`. ### Return value diff --git a/files/en-us/web/api/fontfaceset/load/index.md b/files/en-us/web/api/fontfaceset/load/index.md index 5f08d119d0c5ed5..81663b7323cc316 100644 --- a/files/en-us/web/api/fontfaceset/load/index.md +++ b/files/en-us/web/api/fontfaceset/load/index.md @@ -21,7 +21,7 @@ load(font, text) - `font` - : a font specification using the CSS value syntax, e.g., "italic bold 16px Roboto" -- `text` +- `text` {{optional_inline}} - : limit the font faces to those whose Unicode range contains at least one of the characters in text. This [does not check for individual glyph coverage](https://lists.w3.org/Archives/Public/www-style/2015Aug/0330.html). ### Return value