<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-76.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :nth-last-of-type() pseudo-class</title>
 <author>Daniel Glazman</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-77.xml">NEGATED :first-child pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-75.xml">NEGATED :nth-of-type() pseudo-class</data> </item>
  <item> <name>Test #</name> <data>76 of 143</data> </item>
  <item> <name>Testing</name> <data>NEGATED :nth-last-of-type() pseudo-class</data> </item>
  <item> <name>ID</name> <data>76</data> </item>
  <item> <name>Date</name> <data>11-july-2001</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml">
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should NOT have green background</p>
<address xmlns="http://www.w3.org/1999/xhtml">This address should NOT have green background</address>
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
</content>
  <source>
   <css>.red { background-color : red }
p:not(:nth-last-of-type(3)) { background-color : lime }
dl > *:not(:nth-last-of-type(3n+1)) { background-color : lime }
</css>
   <xml>
&lt;p xmlns="http://www.w3.org/1999/xhtml">This paragraph should NOT have green background&lt;/p>
&lt;address xmlns="http://www.w3.org/1999/xhtml">This address should NOT have green background&lt;/address>
&lt;p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background&lt;/p>
&lt;p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background&lt;/p>
&lt;dl xmlns="http://www.w3.org/1999/xhtml">
  &lt;dt class="red">First definition term that should have green background&lt;/dt>
    &lt;dd class="red">First definition&lt;/dd>
  &lt;dt class="red">Second definition term that should have green background&lt;/dt>
    &lt;dd class="red">Second definition&lt;/dd>
  &lt;dt>Third definition term&lt;/dt>
    &lt;dd>Third definition&lt;/dd>
  &lt;dt class="red">Fourth definition term that should have green background&lt;/dt>
    &lt;dd class="red">Fourth definition&lt;/dd>
  &lt;dt class="red">Fifth definition term that should have green background&lt;/dt>
    &lt;dd class="red">Fifth definition&lt;/dd>
  &lt;dt>Sixth definition term&lt;/dt>
    &lt;dd>Sixth definition&lt;/dd>
&lt;/dl>
</xml>
  </source>
</test>