blob: 4c1caa7abe2cf183151ffa5fa3aa4b5500d3e4f5 [file] [log] [blame]
<csstest def="NEGATED :nth-last-of-type() pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="76" rev="1.1" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests">
<author>Daniel Glazman</author>
<author>Ian Hickson</author>
<cssrules>.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 }
</cssrules>
<code>
<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 class="red" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have green background.</p>
<p class="red" xmlns="http://www.w3.org/1999/xhtml">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>
</code>
</csstest>