W3C home > Mailing lists > Public > www-style@w3.org > June 2008

Re: WebKit now supports CSS Variables

From: Håkon Wium Lie <howcome@opera.com>
Date: Wed, 25 Jun 2008 00:34:31 +0200
Message-ID: <18529.30327.472309.148999@opera.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: www-style list <www-style@w3.org>

Also sprach Daniel Glazman:
 > 
 > Håkon Wium Lie wrote:
 > > Also sprach Maciej Stachowiak:
 > > 
 > >  > >>> style sheet 1: @variable { X: 10px }
 > >  > >>> style sheet 2: @variable { X: none }
 > >  > >>> style sheet 3: div { width: var(X) }
 > > 
 > >  > Your above situation is analogous to the following:
 > >  > 
 > >  > style sheet 1: div.someclass { width: 30px; }
 > >  > style sheet 2: div#someid { width: 10px; }
 > >  > style sheet 3: div { width: 20px; }
 > > 
 > > It's different because because the validity of the declarations is
 > > known at parse-time. Invalid declarations should be dropped, and not
 > > be visible in the DOM.
 > 
 > Both are perfectly valid Håkon...

Not according to the proposal, section 3.3:

  The declaration becomes invalid if the variable does not exist.

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 24 June 2008 22:35:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT