Re: [css-om][css-variables] exposing variables through CSSStyleDeclaration

On 8/28/13 10:55 AM, Tab Atkins Jr. wrote:
> On Wed, Aug 28, 2013 at 1:41 AM, Simon Pieters <simonp@opera.com> wrote:
>> I'm not sure what getComputedStyle should do. I guess include all "supported
>> CSS properties" (i.e. excluding variables) and then include the specified
>> variables.
>
> No, we can't do this.  getComputedStyle returns an object with keys
> being the camelCased transformations of the property names.  Variables
> *can not* be transformed in this way, which is part of the reason I
> added CSSVariablesMap in the first place.

Note also that we do not want to have a named getter on 
CSSStyleDeclaration; certainly not one that can return arbitrary names 
(as in variables).

A Map-like object is a better way of getting to variables.

-Boris

Received on Wednesday, 28 August 2013 15:53:49 UTC