- From: Boris Chiou via GitHub <sysbot+gh@w3.org>
- Date: Wed, 18 Sep 2019 22:51:24 +0000
- To: public-css-archive@w3.org
BorisChiou has just created a new issue for https://github.com/w3c/csswg-drafts: == [web-animations] Reject both "float" and "offset" in keyframes object == Based on the [spec](https://drafts.csswg.org/web-animations/#property-name-conversion), we use `cssFloat` and `cssOffset` to represent `float` property and `offset` property for IDL name conversion. We reject `offset` if is it not a double value because it is a special attribute in [BaseKeyframe](https://drafts.csswg.org/web-animations/#dictdef-basekeyframe). For consistency, maybe we should also reject `float` in keyframes object, and should only accept `cssFloat`. (It seems Blink still accept `float` in keyframes object.) e.g. ``` let a = document.body.animate([{ "float": "left" }], 1000); a.pause(); a.effect.getKeyframes()[0].cssFloat; // Shouldn't be "left". ``` @birtles If you agree with this, could we add a note in the spec to mention that we reject both `offset` and `float` in keyframes object? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4331 using your GitHub account
Received on Wednesday, 18 September 2019 22:51:26 UTC