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

Re: [Css Variables] Variable Declaration Blocks

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sat, 18 Oct 2008 07:21:53 -0700
Message-ID: <48F9F101.1070100@inkedblade.net>
To: Mike Wilson <mikewse@hotmail.com>
CC: 'Andrew Fedoniouk' <news@terrainformatica.com>, www-style@w3.org

Mike Wilson wrote:
> Andrew,
> 
>> We've found that natural constants first-seen-first-used approach
>> works just well. For example:
> 
> You suggested the same thing back in June and it was discussed here:
> http://www.nabble.com/WebKit-now-supports-CSS-Variables-td18076178i60.html#a
> 18162114
> or
> http://lists.w3.org/Archives/Public/www-style/2008Jun/0351.html
> ..
> 
> and I agree with the other posters at that time that it would be 
> confusing to have "first rule overrides later rules" for 
> variables/constants when the rest of CSS uses "last rule overrides
> earlier rules".

I agree with that as well. If fallbacks are important, then we can
define some syntax that explicitly says it's a fallback.

@define fallback values {
   foo: bar;
}

etc.

~fantasai
Received on Saturday, 18 October 2008 17:49:12 GMT

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