<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-77.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :first-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-77b.xml">NEGATED :first-child pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-76b.xml">NEGATED :nth-last-of-type() pseudo-class</data> </item>
  <item> <name>Test #</name> <data>97 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED :first-child pseudo-class</data> </item>
  <item> <name>ID</name> <data>77</data> </item>
  <item> <name>Date</name> <data>2004-03-03</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
 <div xmlns="http://www.w3.org/1999/xhtml">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
 </table>
 </div>
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph <span>should be</span> unstyled.</p>
</content>
  <source>
   <css>.red { background-color : red }
.t1 td:not(:first-child) { background-color : lime }
p &gt; *:not(:first-child) { background-color : lime }
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&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&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 paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
</xml>
  </source>
</test>