Netscape DevEdge

Skip to: [content] [navigation]

CSS2 Selectors Support Chart

Reprinted with permission of Eric A. Meyer

Updated 14 January 2001

Selectors
Property
or Value
WindowsMacintosh
NN4NS60IE4IE5IE55Op3Op4NN4NS60IE45IE5
5.2.1 GroupingBYYYYYYBYYY
x, y, z {...}BYYYYYYBYYY
5.3 Universal SelectorNYNYYYYNYYY
* {...}NYNYYYYNYYY
{...}NYNYYYYNYYY
5.4 Type SelectorsYYYYYYYYYYY
x {...}YYYYYYYYYYY
5.5 Descendant SelectorsYYYYYBYBYYY*
x y z {...}YYYYYBYBYYY
5.6 Child SelectorsNYBNNYYNYNY
x > y {...}NYBNNYYNYNY
5.7 Adjacent Sibling SelectorsNYBBNBYNYNY
x + y {...}NYBBNBYNYNY
5.8.1 Matching attributes and attribute valuesNYNNNNPNYNN
x[attr] {...}NYNNNNYNYNN
x[attr="value"] {...}NYNNNNYNYNN
x[attr~="value"] {...}NYNNNNYNYNN
x[attr|="value"] {...}NYNNNNBNYNN
5.8.3 Class SelectorsPYPYYYYPYYY*
.class {decl;}YYYYYYYYYYY
.class1.class2 {...}NYNYYYYNYYY
5.9 ID SelectorsYYYYYYYYYYY
#id {...}YYYYYYYYYYY
5.10 Pseudo-Class CombinationsNYNNNNNNYNY
x:psuedo1:pseudo2 {...}NYNNNNNNYNY
:psuedo1:pseudo2 {...}NYNNNNNNYNY
5.11.1 :first-childNYNNNNNNYNY
:first-childNYNNNNNNYNY
5.11.2 :link and :visitedNYYYYYYNYYY
:linkNYYYYYYNYYY
:visitedNYYYYYNNYYY
5.11.3 :active, :hover, and :focusNYPPPNPNYPP
:activeNYYYYNPNYYY
:hoverNYPPPNNNYPP*
:focusNYNNNNNNYNY
5.11.4 :langNYNNNYNNYNY
:langNYNNNYNNYNY
5.12.1 :first-lineNYNNYYYNYNY
:first-lineNYNNYYYNYNY
5.12.2 :first-letterNYNNYYYNYNY
:first-letterNYNNYYYNYNY
5.12.3 :before and :afterNYNNNNBNYNN*
:beforeNYNNNNBNYNN
:afterNYNNNNBNYNN

Creative Commons License
This work is licensed under a Creative Commons License.

A+R