- From: Masataka Yakura <myakura.web@gmail.com>
- Date: Thu, 7 Apr 2011 11:26:20 +0900
- To: Baptiste Fontaine <batifon@yahoo.fr>
- Cc: www-style@w3.org
Yes. And that's already happening. Firefox 4 has a ":-moz-any()" pseudo-class which works exactly like what you describe. <https://developer.mozilla.org/en/CSS/%3A-moz-any> WebKit recently implemented this too as ":-webkit-any()". You can use it in the latest Chrome dev channel build (it should also work in Chromium and WebKit nightly). Even Selectors 4 editor's draft adopts this proposal. It is now defined as ":matches()". <http://dev.w3.org/csswg/selectors4/#matches> On Thu, Apr 7, 2011 at 6:04 AM, Baptiste Fontaine <batifon@yahoo.fr> wrote: > > Hello everyone, > Do you think it might be interesting to implement a feature allowing grouping CSS selectors ? Something like: > > (#a, #b, .c):hover {color:blue} > > instead of: > > #a:hover, #b:hover, .c:hover {color:blue} > > -- > Baptiste -- Masataka Yakura <myakura.web@gmail.com>
Received on Thursday, 7 April 2011 02:27:07 UTC