blob: 996af7b18f719db9193725c1aa6166cca12264aa [file] [log] [blame]
<csstest def="NEGATED :nth-of-type() pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="75" 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-of-type(3)) { background-color : lime }
dl &gt; *:not(:nth-of-type(3n+1)) { background-color : lime }
</cssrules>
<code>
<p class="red" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have green background</p>
<address xmlns="http://www.w3.org/1999/xhtml">And this address should be unstyled.</address>
<p class="red" xmlns="http://www.w3.org/1999/xhtml">This paragraph should also have green background!</p>
<p xmlns="http://www.w3.org/1999/xhtml">But this one should be unstyled again.</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
<dt>First definition term</dt>
<dd>First definition</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 class="red">Third definition term that should have green background</dt>
<dd class="red">Third definition that should have green background</dd>
<dt>Fourth definition term</dt>
<dd>Fourth definition</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 class="red">Sixth definition term that should have green background</dt>
<dd class="red">Sixth definition that should have green background</dd>
</dl>
</code>
</csstest>