Re: WebKit now supports CSS Variables

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 UTC