[csswg-drafts] [css-animations] Serialize all keyframe names as strings

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

== [css-animations] Serialize all keyframe names as strings ==
After #118 and #801, support for naming a keyframe the same as a reserved keyword by using a `<string>` was added to parsing and CSSOM setting. [The WPT test](https://github.com/w3c/web-platform-tests/blob/master/css/cssom/CSSKeyframesRule.html#L59-L69) for this part of the spec seems to assume that if a keyword could be parsed as an `<ident>`, then it would be serialized as a string (with quotation marks); otherwise, no quotation marks would be used. However, this seems needlessly complex; wouldn't it be easiest just to serialize all keyframe names as strings? That way, it would be ensured that re-parsing the output would generate an identical rule, without having to check if the name is an `<ident>`.

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

Received on Tuesday, 13 March 2018 00:43:13 UTC