Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[css-font-loading-3] Fix invalid IDL
This fixes invalid IDL syntax introduced in:
#6591

Errors were:
- Interfaces must have an `[Exposed]` extended attribute.
- `bool` does not exist in Web IDL. Correct type is `boolean`.
  • Loading branch information
tidoust committed Sep 13, 2021
commit 36dcd42d7e9371247c46c63f924f536d4008818f
9 changes: 7 additions & 2 deletions css-font-loading-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,12 @@ Discovery of information about a font</h3>
A {{FontFace}} object includes a variety of read-only information about the contents of the font file.

<xmp class="idl">
[Exposed=(Window,Worker)]
interface FontFaceFeatures {
/* The CSSWG is still discussing what goes in here */
};

[Exposed=(Window,Worker)]
interface FontFaceVariationAxis {
readonly attribute DOMString name;
readonly attribute DOMString axisTag;
Expand All @@ -445,18 +447,21 @@ Discovery of information about a font</h3>
readonly attribute double defaultValue;
};

[Exposed=(Window,Worker)]
interface FontFaceVariations {
readonly setlike<FontFaceVariationAxis>;
};

[Exposed=(Window,Worker)]
interface FontFacePalette {
iterable<DOMString>;
readonly attribute unsigned long length;
getter DOMString (unsigned long index);
readonly attribute bool usableWithLightBackground;
readonly attribute bool usableWithDarkBackground;
readonly attribute boolean usableWithLightBackground;
readonly attribute boolean usableWithDarkBackground;
};

[Exposed=(Window,Worker)]
interface FontFacePalettes {
iterable<FontFacePalette>;
readonly attribute unsigned long length;
Expand Down