https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent
Current IDL:
[Constructor(DOMString type, optional FontFaceSetLoadEventInit eventInitDict),
Exposed=Window,Worker]
interface FontFaceSetLoadEvent : Event {
readonly attribute sequence<FontFace> fontfaces;
};
https://heycam.github.io/webidl/#idl-sequence says "Sequences must not be used as the type of an attribute or constant" so this needs to be:
[Constructor(DOMString type, optional FontFaceSetLoadEventInit eventInitDict),
Exposed=Window,Worker]
interface FontFaceSetLoadEvent : Event {
[SameObject] readonly attribute FrozenArray<FontFace> fontfaces;
};
[SameObject] thrown in because it's true, a drive-by.
A test for this would have to check that event.fontfaces===event.fontfaces, and that new FontFaceSetLoadEvent('type', { fontfaces: x }).fontfaces!==x but that the array length and members are equal.
Lists of things are fun. @LoonyBean
https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent
Current IDL:
https://heycam.github.io/webidl/#idl-sequence says "Sequences must not be used as the type of an attribute or constant" so this needs to be:
[SameObject]thrown in because it's true, a drive-by.A test for this would have to check that
event.fontfaces===event.fontfaces, and thatnew FontFaceSetLoadEvent('type', { fontfaces: x }).fontfaces!==xbut that the array length and members are equal.Lists of things are fun. @LoonyBean