<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-146b.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:nth-child() 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-147a.xml">:nth-last-of-type() pseudo-class with collapsed elements</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-146a.xml">:nth-child() pseudo-class with hidden elements</data> </item>
  <item> <name>Test #</name> <data>229 of 296</data> </item>
  <item> <name>Testing</name> <data>:nth-child() pseudo-class with hidden elements</data> </item>
  <item> <name>ID</name> <data>146b</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="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
</content>
  <source>
   <css>
  line { display: block; }
  [type~=match] { background: lime ! important; }
  line:nth-child(3n-1) { background: red; }
  [hidden] { display: none; }
</css>
   <xml>
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
</xml>
  </source>
</test>