<?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>
 <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-76b.xml">NEGATED :nth-last-of-type() pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-75b.xml">NEGATED :nth-of-type() pseudo-class</data> </item>
  <item> <name>Test #</name> <data>107 of 296</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>2001-11-12</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should be unstyled.</p>
<address xmlns="http://www.w3.org/1999/xhtml">This address should be unstyled.</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 that should also have a green background.</dd>
  <dt class="red">Second definition term that should have green background.</dt>
    <dd class="red">Second definition that should have green background.</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 that should have green background.</dd>
  <dt class="red">Fifth definition term that should have green background.</dt>
    <dd class="red">Fifth definition that should have green background.</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 &gt; *:not(:nth-last-of-type(3n+1)) { background-color : lime }
</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background.&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition that should also have a green background.&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background.&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition that should have green background.&lt;/dd&gt;
  &lt;dt&gt;Third definition term.&lt;/dt&gt;
    &lt;dd&gt;Third definition.&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background.&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition that should have green background.&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background.&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition that should have green background.&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term.&lt;/dt&gt;
    &lt;dd&gt;Sixth definition.&lt;/dd&gt;
&lt;/dl&gt;
</xml>
  </source>
</test>