Re: [css-houdini-drafts] registerProperty/unregisterProperty should be clearer about escaping of property name (#283)

It looks like we don't currently CSS-parse it, and instead just take it literally.

If you run:

```js
CSS.registerProperty({
   name:"--f\\30o", 
   syntax:"<color>", 
   initialValue:"blue", 
   inherits:false});
```

then `getComputedStyle(document.body).getPropertyValue("--f\\30o")` returns blue, while `getComputedStyle(document.body).getPropertyValue("--f0o")` returns the empty string.

So yeah, I'm fine with specifying, like in other parts of the platform and TypedOM, that the name is taken literally.

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

Received on Monday, 30 September 2019 22:31:59 UTC