<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-78b.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :last-child 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-79.xml">NEGATED :first-of-type pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-78.xml">NEGATED :last-child pseudo-class</data> </item>
  <item> <name>Test #</name> <data>111 of 303</data> </item>
  <item> <name>Testing</name> <data>NEGATED :last-child pseudo-class</data> </item>
  <item> <name>ID</name> <data>78b</data> </item>
  <item> <name>Date</name> <data>2004-03-03</data> </item>
  <item> <name>Revision</name> <data>1.2</data> </item>
 </metadata>
  <content>
 <div xmlns="http://www.w3.org/1999/xhtml">
  <table class="t1" border="1">
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p xmlns="http://www.w3.org/1999/xhtml">This <span>paragraph should</span> be unstyled.</p>
</content>
  <source>
   <css>.green { background-color : lime ! important }
.t1 td:not(:last-child) { background-color : red }
p &gt; *:not(:last-child) { background-color : red }
table.t1 td { border : thin black solid }
</css>
   <xml>
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
</xml>
  </source>
</test>