-
Notifications
You must be signed in to change notification settings - Fork 711
[font-loading] FontFaceSetLoadEvent's fontfaces should use FrozenArray #810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For what it's worth, Gecko's IDL for this is:
which is just missing The |
Great! @LoonyBean did write a test for this that would be easy to put in web-platform-tests, but I guess it's still csswg-test for this spec? |
Are there web platform tests added for this? |
@LoonyBean hasn't landed the Chromium change for this yet, but it has a test that would be easy to contribute if putting it in web-platform-tests is acceptable. There isn't even a font-loading directory in csswg-test. @gsnedders, please tell us what to do :) |
Yeah, looks like I forgot to file an issue at the time. :( Although a few months later @RByers reported the issue (and I replied to it!), but I guess it never got acted upon. Anyway, thanks for getting it fixed now, @foolip. |
@astearns do we have any policy on where new testsuites go? |
We're moving everything to wpt, so if it can go into wpt to begin with I don't see any reason not to do that. |
@LoonyBean, what happened in the end with the tests for this? Looks like Blink's test in third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html could easily be upstreamed if we just know where to put it? @gsnedders, maybe you can just ping this issue after csswg-tests are merged instead of us trying to figure out an interim place for the test? |
@foolip can you file an issue for the tests and assign it to me? |
@gsnedders, web-platform-tests/wpt#4822 is all yours :) |
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!==x
but that the array length and members are equal.Lists of things are fun. @LoonyBean
The text was updated successfully, but these errors were encountered: