| <csstest def="NEGATED :nth-of-type() pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="75b" 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>.green { background-color : lime ! important } |
| p:not(:nth-of-type(3)) { background-color : red } |
| dl > *:not(:nth-of-type(3n+1)) { background-color : red } |
| </cssrules> |
| |
| <code> |
| <p class="green" 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="green" 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="green">Second definition term that should have green background</dt> |
| <dd class="green">Second definition that should have green background</dd> |
| <dt class="green">Third definition term that should have green background</dt> |
| <dd class="green">Third definition that should have green background</dd> |
| <dt>Fourth definition term</dt> |
| <dd>Fourth definition</dd> |
| <dt class="green">Fifth definition term that should have green background</dt> |
| <dd class="green">Fifth definition that should have green background</dd> |
| <dt class="green">Sixth definition term that should have green background</dt> |
| <dd class="green">Sixth definition that should have green background</dd> |
| </dl> |
| </code> |
| |
| </csstest> |