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

Re: WebKit now supports CSS Variables

From: David Hyatt <hyatt@apple.com>
Date: Tue, 24 Jun 2008 12:43:29 -0500
To: Francois Remy <fremycompany_pub@yahoo.fr>
Cc: Pascal Germroth <pascal@germroth.name>, CSS 3 W3C Group <www-style@w3.org>
Message-id: <0F0D683A-16FB-4834-A62D-947B731BCD72@apple.com>

On Jun 24, 2008, at 10:39 AM, Francois Remy wrote:

>> But the problem of your spec is, that it only allows the @variables- 
>> block to appear before any @imports, so an imported  
>> corporateVars.css would always override any "locally" defined  
>> variables, this might be undesireable. So I suggest that @variables  
>> and @imports should be allowed to appear in any order, so that a  
>> stylesheet could override some imported variables locally.
>> Also, what happens when A imports B and C, and C uses a variable  
>> thats defined in B?
> Good point.
> The normal way it should be, if we reuse known CSS Priority types :
>   Each variable is globally defined and the last variable defined in  
> the normal order is used accross all stylesheets.

This is how the WebKit implementation currently behaves.
Received on Tuesday, 24 June 2008 17:44:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:37 UTC