- From: Alan Gresley <alan@css-class.com>
- Date: Tue, 24 Jun 2008 20:36:22 +1000
- 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 UTC