<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-84b.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:contains() 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-85.xml">NEGATED :contains() pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-84.xml">:contains() pseudo-class</data> </item>
  <item> <name>Test #</name> <data>120 of 302</data> </item>
  <item> <name>Testing</name> <data>:contains() pseudo-class</data> </item>
  <item> <name>ID</name> <data>84b</data> </item>
  <item> <name>Date</name> <data>2001-11-12</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
  <content>
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <ul class="green">
   <li>This list should also have a</li>
<li>green background throughout.</li>
  </ul>
 </div>
</content>
  <source>
   <css>.green { background-color : lime }
div.stub *:contains(&quot;agree&quot;) { background-color : red }</css>
   <xml>
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;green&quot;&gt;
   &lt;li&gt;This list should also have a&lt;/li&gt;
&lt;li&gt;green background throughout.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
</xml>
  </source>
</test>