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:13:07 +1000
Message-ID: <4860C8B3.2020208@css-class.com>
To: David Hyatt <hyatt@apple.com>
CC: www-style list <www-style@w3.org>

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

Can this be done?

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

}

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


Alan
Received on Tuesday, 24 June 2008 10:13:55 GMT

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