Re: [csswg-drafts] [web-animations-2] Web IDL validation errors (#9355)

Note: this is for [`KeyframeAnimationOptions`](https://drafts.csswg.org/web-animations-2/#the-animatable-interface-mixin).

Indeed, dictionaries aren't allowed as attribute types (because an attribute type gives both the setter's input type and the getter's output type, and dictionaries aren't allowed as output types). There's [an issue to separate getters and setters](https://github.com/whatwg/webidl/issues/485) which would allow solving this, but for now I think, unfortunately, the only correct answer is to make the attribute `any` type and do the type-conversion manually in the setter algo.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9355#issuecomment-1719439559 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 14 September 2023 13:20:11 UTC