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

RE: WebKit now supports CSS Variables

From: Mike Wilson <mikewse@hotmail.com>
Date: Tue, 24 Jun 2008 20:28:45 +0200
Message-ID: <BAY116-DAV5AFB90D6668582CB69D64A4A10@phx.gbl>
To: "'David Hyatt'" <hyatt@apple.com>, "'CSS 3 W3C Group'" <www-style@w3.org>
Message-ID: <00f801c8d628$23568dd0$0a01a8c0@mikedeskxp>

David Hyatt wrote:
> On Jun 24, 2008, at 4:34 AM, Mike Wilson wrote:
> >
> > 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's fine, but not the main point of my post. What do you think about
supporting the multiple property assignments part of the example? :

@variables {
  myVarGroup: {
    color: #fe8d12;
    background-color; yellow;
  }
}
#elem2 {
  vars(myVarGroup);
}

Best regards
Mike Wilson
Received on Tuesday, 24 June 2008 18:29:36 GMT

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