[css-variables] getComputedStyle(...)['--foo'] does not work |
|
Issue description
The following should work:
document.body.style.setProperty('--thing', '2px'); getComputedStyle(document.body)['--thing'];
The spec says that the properties do not appear in camel-cased form, and that it can be used normally with getPropertyValue, "etc".
https://drafts.csswg.org/css-variables/#apis
|
|
►
Sign in to add a comment |
|
Comment 1 by benhenry@chromium.org
, Aug 2