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

Re: WebKit now supports CSS Variables

From: Alan Gresley <alan@css-class.com>
Date: Tue, 24 Jun 2008 20:36:22 +1000
Message-ID: <4860CE26.6080605@css-class.com>
To: Alan Gresley <alan@css-class.com>
CC: David Hyatt <hyatt@apple.com>, www-style list <www-style@w3.org>

Alan Gresley wrote:
> David Hyatt wrote:
>>
>> WebKit now has an experimental implementation of CSS variables as 
>> outlined here:
>>
>> http://disruptive-innovations.com/zoo/cssvariables/
>>
>> You can test this feature using a nightly from:
>>
>> http://nightly.webkit.org/
>>
>> Test cases can be found here:
>>
>> http://trac.webkit.org/browser/trunk/LayoutTests/fast/css/variables
>>
>> dave
>> (hyatt@apple.com)
> 
> 
> Dave


Er, I should have said.


Can this be done?

@variables {
    LogoBG / background-color: #fe8612;
    LogoBG / background-image: url(logo.png);
}

div.logoContainer {
    background: var(LogoBG);
}


or with other CSS shorthand.


Alan
Received on Tuesday, 24 June 2008 10:37:15 GMT

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