W3C home > Mailing lists > Public > www-style@w3.org > August 2013

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 Aug 2013 11:53:20 -0400
Message-ID: <521E1CF0.7040503@mit.edu>
To: www-style@w3.org
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC