[webkit-dev] Mozilla -moz-any() selectors extension

Anthony Ricaud rik24d at gmail.com
Fri Apr 30 08:23:00 PDT 2010


I think it's a good addition.

Another nice grouping feature would be something like a @subtree() or @scope() rule. 

@subtree(#menu ul) {
	li {}
	li:hover {}
	a {}
}

would expand as

#menu ul li {}
#menu ul li:hover {}
#menu ul a {}

It's a common feature from CSS "compilers" such as LESS (http://lesscss.org/docs) or CleverCSS (http://sandbox.pocoo.org/clevercss/). And it's very useful to style areas of a page.

Le 25 avr. 2010 à 02:14, Maciej Stachowiak a écrit :

> 
> Do we want a -webkit version of this?
> 
> http://dbaron.org/log/20100424-any
> 
> - Maciej
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



More information about the webkit-dev mailing list