SEARCH
INSIDE
Current Issue
Columns
Newsletters
Archives
TRACKS
Web Authors
Designers
Developers
Strategists
GUIDES
Style Sheets
Web Browsers
Web Tools
ABOUT
Web Review
Write for Us
Advertising
Staff
Contact
NETWORK
WebTechniques.com
WEB2000 Show Site
WebCoder.com
|
 |
 |
> Style Sheet Reference Guide
CSS2 Selectors Support Chart
By Eric A. Meyer
Updated 17 January 2001
PLEASE NOTE: the following chart shows only preliminary assessments, and is provided solely as a convenience for authors. No firm conclusions should be drawn from the ratings assigned below, as testing is both underway and under development. Authors are encouraged to provide feedback regarding their own experiences, and especially to contribute test cases which contradict the ratings below.
Internet Explorer 4.x for Windows ratings are based on screenshots sent in by kind readers. If you can produce screenshots of any of the selector tests found here (5.2.1 through 5.12.3) which contradict the ratings shown below, please contact the author when you have done so. Thank you.
Table Key
|
Y |
Yes |
N |
No |
P |
Partial |
B |
Buggy |
Q |
Quirky |
U |
Unknown |
|
|
Win95/98/NT |
Nav4 |
Netscape Navigator 4.6 |
|
Nav6 |
Netscape Navigator 6.0 |
|
IE4 |
Internet Explorer 4.0 |
IE5 |
Internet Explorer 5.0 |
IE55 |
Internet Explorer 5.5 |
Op3 |
Opera 3.6 |
Op4 |
Opera 4.02 |
Op5 |
Opera 5 |
|
Macintosh |
Nav4 |
Netscape Navigator 4.5 |
Nav6 |
Netscape Navigator 6.0 |
IE45 |
Internet Explorer 4.5 |
IE5 |
Internet Explorer 5.0 |
|
Selectors | |
Property or Value | | Windows95/98/NT | | Macintosh | | |
| Nav4 | Nav6 | IE4 | IE5 | IE55 | Op3 | Op4 | Op5 | | Nav4 | Nav6 | IE45 | IE5 | | |
5.2.1 | Grouping | | B | Y | Y | Y | Y | Y | Y | Y | | B | Y | Y | Y | | |
| x, y, z {decl;} | | B | Y | Y | Y | Y | Y | Y | Y | | B | Y | Y | Y | | |
5.3 | Universal Selector | | N | Y | N | Y | Y | Y | Y | Y | | N | Y | Y | Y | | |
| * {decl;} | | N | Y | N | Y | Y | Y | Y | Y | | N | Y | Y | Y | | |
| {decl;} | | N | Y | N | Y | Y | Y | Y | Y | | N | Y | Y | Y | | |
5.4 | Type Selectors | | Y | Y | Y | Y | Y | Y | Y | Y | | Y | Y | Y | Y | | |
| x {decl;} | | Y | Y | Y | Y | Y | Y | Y | Y | | Y | Y | Y | Y | | |
5.5 | Descendant Selectors | | Y | Y | Y | Y | Y | B | Y | Y | | B | Y | Y | Y | | [note] |
| x y z {decl;} | | Y | Y | Y | Y | Y | B | Y | Y | | B | Y | Y | Y | | |
5.6 | Child Selectors | | N | Y | B | N | N | Y | Y | Y | | N | Y | N | Y | | |
| x > y {decl;} | | N | Y | B | N | N | Y | Y | Y | | N | Y | N | Y | | |
5.7 | Adjacent Sibling Selectors | | N | Y | B | B | N | B | Y | Y | | N | Y | N | Y | | |
| x + y {decl;} | | N | Y | B | B | N | B | Y | Y | | N | Y | N | Y | | |
5.8.1 | Matching attributes and attribute values | | N | Y | N | N | N | N | P | Y | | N | Y | N | N | | |
| x[attr] {decl;} | | N | Y | N | N | N | N | Y | Y | | N | Y | N | N | | |
| x[attr="value"] {decl;} | | N | Y | N | N | N | N | Y | Y | | N | Y | N | N | | |
| x[attr~="value"] {decl;} | | N | Y | N | N | N | N | Y | Y | | N | Y | N | N | | |
| x[attr|="value"] {decl;} | | N | Y | N | N | N | N | B | B | | N | Y | N | N | | |
5.8.3 | Class Selectors | | P | Y | P | Y | Y | Y | Y | Y | | P | Y | Y | Y | | [note] |
| .class {decl;} | | Y | Y | Y | Y | Y | Y | Y | Y | | Y | Y | Y | Y | | |
| .class1.class2 {decl;} | | N | Y | N | B | B | Y | Y | Y | | N | Y | B | B | | [note] |
5.9 | ID Selectors | | Y | Y | Y | Y | Y | Y | Y | Y | | Y | Y | Y | Y | | [note] |
| #id {decl;} | | Y | Y | Y | Y | Y | Y | Y | Y | | Y | Y | Y | Y | | |
5.10 | Pseudo-Class Combinations | | N | Y | N | N | N | N | N | N | | N | Y | N | Y | | |
| x:psuedo1:pseudo2 {decl;} | | N | Y | N | N | N | N | N | N | | N | Y | N | Y | | |
| :psuedo1:pseudo2 {decl;} | | N | Y | N | N | N | N | N | N | | N | Y | N | Y | | |
5.11.1 | :first-child | | N | Y | N | N | N | N | N | N | | N | Y | N | Y | | |
| :first-child | | N | Y | N | N | N | N | N | N | | N | Y | N | Y | | |
5.11.2 | :link and :visited | | N | Y | Y | Y | Y | Y | Y | Y | | N | Y | Y | Y | | |
| :link | | N | Y | Y | Y | Y | Y | Y | Y | | N | Y | Y | Y | | |
| :visited | | N | Y | Y | Y | Y | Y | N | Y | | N | Y | Y | Y | | |
5.11.3 | :active, :hover, and :focus | | N | P | P | P | P | N | P | Y | | N | P | P | P | | |
| :active | | N | Y | Y | Y | Y | N | P | Y | | N | Y | Y | Y | | |
| :hover | | N | P | P | P | P | N | N | P | | N | P | P | P | | [note] |
| :focus | | N | Y | N | N | N | N | N | N | | N | Y | N | Y | | |
5.11.4 | :lang | | N | N | N | N | N | N | N | N | | N | N | N | Y | | |
| :lang | | N | N | N | N | N | N | N | N | | N | N | N | Y | | |
5.12.1 | :first-line | | N | P | N | N | Y | Y | Y | Y | | N | P | N | Y | | |
| :first-line | | N | P | N | N | Y | Y | Y | Y | | N | P | N | Y | | |
5.12.2 | :first-letter | | N | P | N | N | Y | Y | Y | Y | | N | P | N | Y | | |
| :first-letter | | N | P | N | N | Y | Y | Y | Y | | N | P | N | Y | | |
5.12.3 | :before and :after | | N | Y | N | N | N | N | B | Y | | N | Y | N | N | | [note] |
| :before | | N | Y | N | N | N | N | B | Y | | N | Y | N | N | | |
| :after | | N | Y | N | N | N | N | B | Y | | N | Y | N | N | | |
CSS1 Support Chart | CSS2 Selector Support Chart | CSS FAQ | Glossary
|  |
 |
 |
|