<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-145a.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:nth-of-type() pseudo-class with hidden elements</title>
 <author>Ian Hickson</author>
 <metadata>
  <item> <name>CSS 3 Module</name> <data>W3C Selectors</data> </item>
  <item> <name>Next</name> <data xlink:type="simple" xlink:href="css3-modsel-145b.xml">:nth-of-type() pseudo-class with hidden elements</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-144.xml">NEGATED :enabled:disabled pseudo-classes</data> </item>
  <item> <name>Test #</name> <data>214 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>:nth-of-type() pseudo-class with hidden elements</data> </item>
  <item> <name>ID</name> <data>145a</data> </item>
  <item> <name>Date</name> <data>2002-10-09</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
   <requirement>The UA must support namespaces for this test.</requirement>
  <content>
 <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> 
</content>
  <source>
   <css>
  line { display: block; }
  [type~=odd] { background: red; }
  line:nth-of-type(odd) { background: lime; }
  [hidden] { display: none; }
</css>
   <xml>
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
</xml>
  </source>
</test>