[csswg-drafts] [font-loading] FontFaceSetLoadEvent's fontfaces should use FrozenArray

foolip has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [font-loading] FontFaceSetLoadEvent's fontfaces should use 
FrozenArray ==
https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent

Current IDL:
```WebIDL
[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:
```WebIDL
[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

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/810 using your GitHub 
account

Received on Thursday, 15 December 2016 16:32:48 UTC