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: Tue, 24 Jun 2008 23:12:11 +0200
Message-ID: <18529.25387.146392.841110@opera.com>
To: Maciej Stachowiak <mjs@apple.com>
Cc: www-style list <www-style@w3.org>

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.

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

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