Re: [csswg-drafts] [css-variables] Documentation needed on using variables with JavaScript

This is defined in [CSSOM](https://drafts.csswg.org/cssom/), and CSS Variables already has this reminder in [ยง4. APIs](https://drafts.csswg.org/css-variables/#apis):

> Note: Custom properties do not appear on a CSSStyleDeclaration object in camel-cased form, because their names may have both upper and lower case letters which indicate distinct custom properties. The sort of text transformation that automatic camel-casing performs is incompatible with this. They can still be accessed by their proper name via [getPropertyValue()](https://drafts.csswg.org/cssom-1/#dom-cssstyledeclaration-getpropertyvalue)/etc.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1571#issuecomment-311826500 using your GitHub account

Received on Thursday, 29 June 2017 00:12:56 UTC