[css-houdini-drafts] [css-properties-values-api] PropertyDescriptor::name unnecessarily uses CSS syntax

SimonSapin has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-properties-values-api] PropertyDescriptor::name unnecessarily uses CSS syntax ==
This is pretty much the same as https://github.com/w3c/csswg-drafts/issues/1325.

https://drafts.css-houdini.org/css-properties-values-api/#register-a-custom-property
> Attempt to parse name as a `<custom-property-name>`.

This suggests using a CSS parser to parse the contents of a JS string, with CSS backslash-escapes (in addition to any JS backslash-escapes, if the JS string was initially a literal). Instead it should only check something like "starts with two dashes U+002D U+002D".

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

Received on Sunday, 27 August 2017 13:19:18 UTC