You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This brings the spec's handling of dictionary objects into line with
WebIDL which has:
> If Type(V) is not Undefined, Null or Object, then throw
> a TypeError.[1]
[1] https://heycam.github.io/webidl/#es-dictionaryClosesw3c#2533.
(From discussion on web-platform-tests/wpt#10399)
Currently the procedure to process a keyframes argument (https://drafts.csswg.org/web-animations-1/#processing-a-keyframes-argument) says:
(in the otherwise case)
5.4.6 "If nextItem is not an object, throw a TypeError and abort these steps."
However in the above linked PR, Brian noted:
"Yeah, it looks like we shouldn't throw on null / undefined.
In WebIDL when we create a sequence from an iterable we have the step:
For converting dictionary types we have:
So we should update the Web Animations spec to match this and add a test for this case that we don't throw."
The text was updated successfully, but these errors were encountered: