Skip to content

Commit c646ced

Browse files
authored
[css-font-loading] Fix invalid IDL (#6602)
1 parent 96c35c2 commit c646ced

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

css-font-loading-3/Overview.bs

+7-2
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,12 @@ Discovery of information about a font</h3>
433433
A {{FontFace}} object includes a variety of read-only information about the contents of the font file.
434434

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

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

450+
[Exposed=(Window,Worker)]
448451
interface FontFaceVariations {
449452
readonly setlike<FontFaceVariationAxis>;
450453
};
451454

455+
[Exposed=(Window,Worker)]
452456
interface FontFacePalette {
453457
iterable<DOMString>;
454458
readonly attribute unsigned long length;
455459
getter DOMString (unsigned long index);
456-
readonly attribute bool usableWithLightBackground;
457-
readonly attribute bool usableWithDarkBackground;
460+
readonly attribute boolean usableWithLightBackground;
461+
readonly attribute boolean usableWithDarkBackground;
458462
};
459463

464+
[Exposed=(Window,Worker)]
460465
interface FontFacePalettes {
461466
iterable<FontFacePalette>;
462467
readonly attribute unsigned long length;

0 commit comments

Comments
 (0)