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

Re: [cssom][css-variables] cssom defines property access using case insensitive lookups

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 27 Feb 2013 14:15:29 -0800
Message-ID: <CAAWBYDA=og1LznH1abDUzf1OkS_UY=gRtQSVgCuBhcU2=ojq2w@mail.gmail.com>
To: John Daggett <jdaggett@mozilla.com>
Cc: www-style list <www-style@w3.org>
On Wed, Feb 27, 2013 at 5:58 AM, John Daggett <jdaggett@mozilla.com> wrote:
> As was decided at the last F2F, cascading variable properties are
> referenced via a case-sensitive ident. However, the definition of
> object model methods referred to in the CSS Variables spec such as
> setProperty, lookup property values with a case *insensitive* lookup.
> That needs to be tweaked for the variables case.
>
> In other words, the two lines below return different values:
>
>   a = styleObj.getPropertyValue("var-foo");
>   b = styleObj.getPropertyValue("var-FOO");
>
> I think the object model spec just needs to include steps for special
> handling properties that begin with "var-".

Ah, good catch.  Yes, this is something for CSSOM to define, probably.
 I can patch it *in* Variables, but it would be better done in CSSOM,
I think.

Alternately, the get/set/etc algorithms can define a flag that
invoking specs can set for CI/CS behavior, and then I can just have
Variables set the flag to CS.  That way future specs that need CS
matching for whatever reason can specify this without having to get
CSSOM to update.  I'd prefer this.

~TJ
Received on Wednesday, 27 February 2013 22:16:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:06 GMT