<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-43.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Descendant combinator</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-44.xml">Child combinator</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-42.xml">::after pseudo-element</data> </item>
  <item> <name>Test #</name> <data>43 of 143</data> </item>
  <item> <name>Testing</name> <data>Descendant combinator</data> </item>
  <item> <name>ID</name> <data>43</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" class="t1">
  <p class="red">This paragraph should have a green background</p>
  <table>
    <tbody>
      <tr>
<td>
<p class="red">This paragraph should have a green background</p>
</td>
</tr>
    </tbody>
  </table>
</div>
<table xmlns="http://www.w3.org/1999/xhtml">
<tbody>
<tr>
<td>
<p>This paragraph should NOT have a green background</p>
</td>
</tr>
</tbody>
</table>
</content>
  <source>
   <css>.red {background-color : red }
div.t1 p { background-color : lime }</css>
   <xml>
&lt;div xmlns="http://www.w3.org/1999/xhtml" class="t1">
  &lt;p class="red">This paragraph should have a green background&lt;/p>
  &lt;table>
    &lt;tbody>
      &lt;tr>
&lt;td>
&lt;p class="red">This paragraph should have a green background&lt;/p>
&lt;/td>
&lt;/tr>
    &lt;/tbody>
  &lt;/table>
&lt;/div>
&lt;table xmlns="http://www.w3.org/1999/xhtml">
&lt;tbody>
&lt;tr>
&lt;td>
&lt;p>This paragraph should NOT have a green background&lt;/p>
&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
</xml>
  </source>
</test>