RE: WebKit now supports CSS Variables

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);
}

Best regards
Mike Wilson

Received on Tuesday, 24 June 2008 09:35:34 UTC