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

RE: [css3] "Selectors that People Actually Use"

From: Alan Gresley <alan1@azzurum.com>
Date: Mon, 18 Feb 2008 12:29:05 -0700
To: Ambrose Li <ambrose.li@gmail.com>
cc: www-style@w3.org
Message-ID: <20080218122905.34b83c2f3c9bef00757a2c62c0fb7450.b4c251b588.wbe@email.secureserver.net>

Ambrose Li wrote:

> > * E + F - Only the next element - rarely useful.
> >
> > What if another div element contained two tables and I wanted to select the later table
> Whoever wrote that it's "rarely useful" obviously has not even bothered to
> check what this is used for in the normal case. =)

May I quote that line on my site :-)

> > These selectors are very powerful and as web developers understand them better, they will be used much more often.
> Maybe also as browsers actually honour them. Last time I checked lots of
> them didn't even work, so I suppose lots of people aren't using them
> because they, like me, would assume they still wouldn't work.
> -- 
> cheers,
> -ambrose

Not quite true. IE7 was the first browser to correctly handle all attribute selectors. Opera 9.5 is now the second. This does not say there are bugs, since I have found none with normal CSS. I have eight linked test cases beginning from here.


Overa 9.5 passes each test and is the first browser to do so. They cover Structural Pseudo Classes, Attribute selectors and negation. The amount of similar test pages I could have if I started chaining these selectors is endless with the document tree. Find the link for each test page at the bottom of each page.

IE7 only bug with attribute selectors since there is no HTML attribute className.

p.test92[className="test92"] {}

p.test93[className*=""] {}

All modern browsers support attribute selectors, most browser support negation and structural pseudo classes is very patchy.


Received on Monday, 18 February 2008 19:29:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:34 UTC