CSS 3 Module <== Test # ==>
W3C Selectors 226 of 296
Testing Date Revision
:nth-of-type() pseudo-class with hidden elements (ID #145a) 2002-10-09 1.1

NOTE: The UA must support namespaces for this test.

This line should be green. This line should be unstyled. This line should be unstyled. This line should be green. This line should be unstyled. This line should be green. This line should be green. This line should be unstyled. This line should be green. This line should be unstyled. This line should be green.
  line { display: block; }
  [type~=odd] { background: red; }
  line:nth-of-type(odd) { background: lime; }
  [hidden] { display: none; }
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test>