- From: Francois Remy <fremycompany_pub@yahoo.fr>
- Date: Tue, 24 Jun 2008 11:54:42 +0200
- To: "Mike Wilson" <mikewse@hotmail.com>
- Cc: "CSS 3 W3C Group" <www-style@w3.org>
I think this is not a good idea What you're wanting here is more an "CSS Inheritage". It's a very good feature to ask, but this is not in links with variables :-) What about a synthax like : selector1 { color: green; } selector2 { /* I think we can't get any problem since a selector can't contains any ";" but if it's needed, we can use another syntax. */ inherits: selector1; } Or @selector-base { selector-name: s1; color: green; } selector2 { inherits: s1; } Fremy -------------------------------------------------- From: "Mike Wilson" <mikewse@hotmail.com> Sent: Tuesday, June 24, 2008 11:34 AM To: "'David Hyatt'" <hyatt@apple.com>; "'www-style list'" <www-style@w3.org> Subject: 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:55:24 UTC