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

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

From: John Daggett <jdaggett@mozilla.com>
Date: Wed, 27 Feb 2013 05:58:20 -0800 (PST)
To: www-style list <www-style@w3.org>
Message-ID: <1875182404.5430028.1361973500987.JavaMail.root@mozilla.com>

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-".

Regards,

John
Received on Wednesday, 27 February 2013 13:58:48 GMT

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