New issue
Advanced search Search tips

Issue 862527 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

[css-variables] getComputedStyle(...)['--foo'] does not work

Project Member Reported by andruud@chromium.org, Jul 11

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
 
Status: Assigned (was: Available)

Sign in to add a comment