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

Re: [CSS Variables] WebKit now supports variable declaration blocks

From: David Hyatt <hyatt@apple.com>
Date: Thu, 31 Jul 2008 12:15:19 -0500
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, Brad Kemper <brkemper@comcast.net>, Bjoern Hoehrmann <derhoermi@gmx.net>, "www-style@w3.org List" <www-style@w3.org>
Message-id: <6686E6B7-C34C-4B7D-B822-FDCB4B3B0D28@apple.com>
WebKit does not support "var-group" so in order to test this you'd  
need to drop the property name, e.g.,

div { $complex-variable }

You also need to put ; between the variables in the @define (and no  
colon is used for complex variables).

@define {

complex-variable { ... };
another-complex-variable { ... }

}

dave

On Jul 31, 2008, at 12:09 PM, Tab Atkins Jr. wrote:

>
>
> On Thu, Jul 31, 2008 at 11:40 AM, Andrew Fedoniouk <news@terrainformatica.com 
> > wrote:
> Say, I have:
>
> @define
> {
>    complex-variable:
>    {
>        color:red;
>        var-group: $another-complex-variable;
>    }
>    another-complex-variable:
>    {
>        color:maroon;
>        var-group: $complex-variable;
>    }
> }
>
> div
> {
>   color:white;
>
>   background-color: blue;
>   var-group: $complex-variable;
> }
> div
> {
>   color:blue;
>   var-group: $another-complex-variable;
> }
>
>
> What would be a color of the div text at the end:
>
> <div>
>  What color is this?
> </div>
>
>
> -- 
> Andrew Fedoniouk.
>
> http://terrainformatica.com
>
>
> You know, Andrew, you can just install the nightly and test it out  
> yourself.  ^_^  The answer appears to be blue text on a blue  
> background (assuming I installed the nightly correctly).
>
> ~TJ
Received on Thursday, 31 July 2008 17:16:00 GMT

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