Re: WebKit now supports CSS Variables

On Jun 24, 2008, at 8:50 AM, Daniel Glazman wrote:

> Håkon Wium Lie wrote:
>
>> I'd prefer to throw away invalid declarations at parse time, and not
>> have to keep them around. Therefore, I suggest that we add text
>> similar to the @namespace specification:
>>  The namespace prefix is declared only within the style sheet in
>>  which its @namespace rule appears. It is not declared in any style
>>  sheets importing or imported by that style sheet, nor in any other
>>  style sheets applying to the document.
>
> I see your point but I strongly disagree. The main purpose of CSS
> Variables for a corporation is unicity of design for all corporate
> web sites. That means having a single corporateVars.css somewhere that
> all other stylesheets can import... If you break at @import  
> boundaries,
> the whole thing loses most of its interest.


I agree.  I think the model of just allowing variables to be defined  
at the document-level is simple and intuitive.  It allows for  
centralized variable definition and reuse.

dave

Received on Tuesday, 24 June 2008 17:42:33 UTC