<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-78.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :last-child pseudo-class</title>
 <author>Daniel Glazman</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-77.xml">NEGATED :first-child pseudo-class</data> </item>
  <item> <name>Test #</name> <data>78 of 143</data> </item>
  <item> <name>Testing</name> <data>NEGATED :last-child pseudo-class</data> </item>
  <item> <name>ID</name> <data>78</data> </item>
  <item> <name>Date</name> <data>11-july-2001</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table class="t1" border="1">
  <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>1.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>2.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>3.3</td>
  </tr>
</table>
</div>
<p xmlns="http://www.w3.org/1999/xhtml">
<span>This paragraph should NOT AT ALL</span>
     have a green background</p>
</content>
  <source>
   <css>.red { background-color : red }
.t1 td:not(:last-child) { background-color : lime }
p > *:not(:last-child) { background-color : lime }
table.t1 td { border : thin black solid }
</css>
   <xml>
&lt;div xmlns="http://www.w3.org/1999/xhtml" align="center">
&lt;table class="t1" border="1">
  &lt;tr>
    &lt;td class="red">green cell&lt;/td>
    &lt;td class="red">green cell&lt;/td>
    &lt;td>1.3&lt;/td>
  &lt;/tr>
  &lt;tr>
    &lt;td class="red">green cell&lt;/td>
    &lt;td class="red">green cell&lt;/td>
    &lt;td>2.3&lt;/td>
  &lt;/tr>
  &lt;tr>
    &lt;td class="red">green cell&lt;/td>
    &lt;td class="red">green cell&lt;/td>
    &lt;td>3.3&lt;/td>
  &lt;/tr>
&lt;/table>
&lt;/div>
&lt;p xmlns="http://www.w3.org/1999/xhtml">
&lt;span>This paragraph should NOT AT ALL&lt;/span>
     have a green background&lt;/p>
</xml>
  </source>
</test>