Re: WebKit now supports CSS Variables

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