Selectors Level 4 CR Test Suite

Tree-Structural pseudo-classes (5 tests)

Test Refs Flags Info
+ 13 Tree-Structural pseudo-classes
+ 13.1 :root pseudo-class
+ 13.2 :empty pseudo-class
+ 13.3 Child-indexed Pseudo-classes
child-index-no-parent-01 = child-indexed selectors should match without a parent element.
child-indexed-pseudo-class Script Matching of child-indexed pseudo-classes
sharing-in-svg-use = nth-of-type should work in an svg use subtree
+ 13.3.1 :nth-child() pseudo-class
+ 13.3.2 :nth-last-child() pseudo-class
+ 13.3.3 :first-child pseudo-class
first-child-last-child Script CSS Selectors Invalidation: :first-child :last-child
  • This tests that the :first-child and :last-child selectors are effective
+ 13.3.4 :last-child pseudo-class
+ 13.3.5 :only-child pseudo-class
+ 13.4 Typed Child-indexed Pseudo-classes
+ 13.4.1 :nth-of-type() pseudo-class
+ 13.4.2 :nth-last-of-type() pseudo-class
+ 13.4.3 :first-of-type pseudo-class
of-type-selectors = Namespaces Selectors Level 4: :first-of-type
+ 13.4.4 :last-of-type pseudo-class
+ 13.4.5 :only-of-type pseudo-class