Raw File
css3-modsel-145b.xml
<csstest def=":nth-of-type() pseudo-class with hidden elements" module="W3C Selectors" modulename="css3-modsel" number="145b" rev="1.1" date="9-october-2002" xmlns="http://www.example.org/css3tests">

<author>Ian Hickson</author>

<cssrules>
  line { display: block; }
  [type~=odd] { background: lime ! important; }
  line:nth-of-type(odd) { background: red; }
  [hidden] { display: none; }
</cssrules>

<code>
 <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>
</code>
</csstest>
back to top