<?xml-stylesheet href="../../../style/xhtml-full.css" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>:nth-of-type() pseudo-class with hidden elements</title>
  <meta name="author" content="Ian Hickson"/>
  <link rel="stylesheet" type="text/css" href="../../../style/xhtml-full.css"/> <!-- yes this means compliant UAs get to import this twice -->
  <style type="text/css"><![CDATA[
  line { display: block; }
  [type~=odd] { background: lime ! important; }
  line:nth-of-type(odd) { background: red; }
  [hidden] { display: none; }
]]></style>
  <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
  <link rel="prev" href="css3-modsel-145a.xml" title=":nth-of-type() pseudo-class with hidden elements"/>
  <link rel="next" href="css3-modsel-146a.xml" title=":nth-child() pseudo-class with hidden elements"/>
  <link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
  <link rel="up" href="./index.html"/>
  <link rel="top" href="../../../index.html"/>
 </head>
 <body>
  <table class="testDescription">
   <tr>
    <th class="b">CSS 3 Module</th> <!-- XXX hard coded to say CSS 3 -->
    <th class="c" colspan="2">
     <a href="css3-modsel-145a.xml" title=":nth-of-type() pseudo-class with hidden elements">&lt;==</a>
     Test #
     <a href="css3-modsel-146a.xml" title=":nth-child() pseudo-class with hidden elements">==&gt;</a>
    </th>
   </tr>
   <tr>
    <td class="b">W3C Selectors</td>
    <td class="c" colspan="2">227 of 296</td>
   </tr>
   <tr>
    <th class="b">Testing</th>
    <th class="a">Date</th>
    <th class="a">Revision</th>
   </tr>
   <tr>
    <td class="b">:nth-of-type() pseudo-class with hidden elements (ID #145b)</td>
    <td class="a">2002-10-09</td>
    <td class="a">1.1</td>
   </tr>
  </table>
  <p class="WARNING">NOTE: The UA must support namespaces for this test.</p>
  <div class="testSource">
   <div class="testText">
 <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> 
</div>
   <pre class="rules">
  line { display: block; }
  [type~=odd] { background: lime ! important; }
  line:nth-of-type(odd) { background: red; }
  [hidden] { display: none; }
</pre>
   <pre class="rules">
 &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; 
</pre>
  </div>
 </body>
</html>