tests - CSS Selectors

Basic tests for CSS Selectors module (http://www.w3.org/TR/css3-selectors/).

  1. Basic browser support tables
  2. attribute selectors
  3. grouping selectors
  4. before and after pseudo–elements
  5. combinators
  6. first-child, last-child, only-child pseudo–classes
  7. first-of-type, last-of-type, only-of-type pseudo–classes
  8. first-letter, first-line–pseudo elements
  9. namespaces
  10. root pseudo–class, UI–elements
  11. target pseudo–class, empty pseudo–class, negation (:not()), lang pseudo-class

The browser result chart is based on the above tests and the CSS selectors XHTML test-suite (there is also a HTML test suite).The CSS2 test suite by E. Meyer has also been checked.


Pending: tests for :nth-child, :nth-of-type(), :nth-last-of-type(), :first-of-type, :last-of-type, :only-of-type pseudo-class. Those are only supported in the following browsers: the Tasman 0.9 rendering engine, aka MSN for OS X (or what could have been IE 6 Mac). I don't have access to that browser for extensive testing. Recent nightly builds of WebKit (Safari) also supports some of these. According to the chart at Wikipedia, Konqueror (3.4) supports these properties fully.

Older tests and results by CodeBitch e.a. at macedition.com.

Documentation on supported CSS 1 and CSS 2 properties in the Gecko rendering engine.

Last modified: February 10 2010 14:30:04 GMT.