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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 31 Jul 2008 12:09:13 -0500
Message-ID: <dd0fbad0807311009v4d829d34r9f1b04a11bc30b8f@mail.gmail.com>
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "Brad Kemper" <brkemper@comcast.net>, "David Hyatt" <hyatt@apple.com>, "Bjoern Hoehrmann" <derhoermi@gmx.net>, "www-style@w3.org List" <www-style@w3.org>
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:09:50 GMT

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