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

Re: [css3] “Selectors that People Actually Use”

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 19 Feb 2008 03:47:26 -0600
Message-ID: <47BAA5AE.8050400@mit.edu>
To: Jens Meiert <jens.meiert@erde3.com>
CC: www-style@w3.org

Jens Meiert wrote:
> * E:empty – Chances are indeed that authors will use element selectors
> instead

How do element selectors solve the problem? Note that this selector _is_ being 
used (given the speed with which we get bugs filed if we break something about 
it, the use is not that rare).

Gecko uses it internally for form control styling, for menu styling, and in the 
HTML editor.  All of those are use cases sites might care about.

> * E:lang(fr) – Probably the most questionable selector since apparently
> replaceable by attribute selectors.

Assuredly not, as you can tell for yourself by reading 
<http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/style/nsCSSRuleProcessor.cpp&rev=1.23&mark=1206-1249#1206>.

> * E:nth-of-type(n), E:nth-last-child(n), E:nth-last-of-type(n)

I happen to pretty much agree on these, to be honest.  ;)

-Boris
Received on Tuesday, 19 February 2008 09:47:04 GMT

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