- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Mon, 30 Sep 2019 22:31:58 +0000
- To: public-houdini-archive@w3.org
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