<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-84.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-84b.xml">:contains() pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-83.xml">Negation pseudo-class cannot be an argument of itself</data> </item>
  <item> <name>Test #</name> <data>99 of 256 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>:contains() pseudo-class</data> </item>
  <item> <name>ID</name> <data>84</data> </item>
  <item> <name>Date</name> <data>12-november-2001</data> </item>
  <item> <name>Revision</name> <data>1.1</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="stub">
  <p class="red">There is no disagreement over the fact that this paragraph should have a green background.</p>
  <ul class="red">
   <li>This list, including its bullets and all the text, should have a</li><li>green background throughout as well.</li>
  </ul>
 </div>
</content>
  <source>
   <css>div.stub *:contains(&quot;agree&quot;) { background-color : lime }
.red { 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;red&quot;&gt;There is no disagreement over the fact that this paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
   &lt;li&gt;This list, including its bullets and all the text, should have a&lt;/li&gt;&lt;li&gt;green background throughout as well.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
</xml>
  </source>
</test>