css3-modsel-76b.xml (1751B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>NEGATED :nth-last-of-type() pseudo-class</title> 5 <style type="text/css"><![CDATA[.green { background-color : lime ! important } 6 p:not(:nth-last-of-type(3)) { background-color : red } 7 dl > *:not(:nth-last-of-type(3n+1)) { background-color : red } 8 ]]></style> 9 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 10 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 11 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 12 </head> 13 <body> 14 <p>This paragraph should be unstyled.</p> 15 <address>This address should be unstyled.</address> 16 <p class="green">This paragraph should have green background.</p> 17 <p class="green">This paragraph should have green background.</p> 18 <dl> 19 <dt class="green">First definition term that should have green background.</dt> 20 <dd class="green">First definition that should also have a green background.</dd> 21 <dt class="green">Second definition term that should have green background.</dt> 22 <dd class="green">Second definition that should have green background.</dd> 23 <dt>Third definition term.</dt> 24 <dd>Third definition.</dd> 25 <dt class="green">Fourth definition term that should have green background.</dt> 26 <dd class="green">Fourth definition that should have green background.</dd> 27 <dt class="green">Fifth definition term that should have green background.</dt> 28 <dd class="green">Fifth definition that should have green background.</dd> 29 <dt>Sixth definition term.</dt> 30 <dd>Sixth definition.</dd> 31 </dl> 32 </body> 33 </html>