[csswg-drafts] [css-layout-api] childBreakTokens attribute should be FrozenArray<ChildBreakToken>

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

== [css-layout-api] childBreakTokens attribute should be FrozenArray<ChildBreakToken> ==
https://drafts.css-houdini.org/css-layout-api/#breaking-and-fragmentation

```WebIDL
[Exposed=LayoutWorklet]
interface BreakToken {
    readonly attribute sequence<ChildBreakToken> childBreakTokens;
    readonly attribute any data;
};
```

Per [Web IDL](https://heycam.github.io/webidl/#idl-sequence), "Sequences must not be used as the type of an attribute or constant."

The fix is probably to use `FrozenArray<ChildBreakToken>` instead.

Found by @tidoust in https://github.com/tidoust/reffy-reports/issues/3#issuecomment-387550183.

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

Received on Wednesday, 9 May 2018 11:26:35 UTC