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

Re: WebKit now supports CSS Variables

From: David Hyatt <hyatt@apple.com>
Date: Tue, 24 Jun 2008 12:35:55 -0500
To: Mike Wilson <mikewse@hotmail.com>
Cc: 'www-style list' <www-style@w3.org>
Message-id: <81658D4F-E9DA-4394-A319-92321DAC035E@apple.com>

On Jun 24, 2008, at 4:34 AM, Mike Wilson wrote:

>
> David Hyatt wrote:
>> WebKit now has an experimental implementation of CSS variables as
>> outlined here:
>>
>> http://disruptive-innovations.com/zoo/cssvariables/
>
> Nice to see support for this kind of constructs. Did you consider
> adding support for reusing groups of multiple property assignments
> as well?
>
> Extending your syntax it could look something like this:
>
> @variables {
>  myColor: #fe8d12;
>  myVarGroup: {
>    color: var(myColor);
>    background-color; yellow;
>  }
> }
> #elem1 {
>  color: var(myColor);
> }
> #elem2 {
>  vars(myVarGroup);
> }


I don't think we should be nesting variable calls inside other  
variable definitions.  That seems needlessly complicated.  You'd have  
to check for cycles as you did variable resolution.

dave
(hyatt@apple.com)
Received on Tuesday, 24 June 2008 17:36:38 GMT

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