<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-85.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :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-86.xml">Nondeterministic matching of descendant and child combinators</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-84b.xml">:contains() pseudo-class</data> </item>
  <item> <name>Test #</name> <data>108 of 273 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED :contains() pseudo-class</data> </item>
  <item> <name>ID</name> <data>85</data> </item>
  <item> <name>Date</name> <data>2005-09-29</data> </item>
  <item> <name>Revision</name> <data>1.2</data> </item>
 </metadata>
  <content>
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="red">This paragraph should have a green background.</p>
  <ul class="red">
    <li>All the text in this list should have a</li>
    <li>green background throughout as well.</li>
  </ul>
</div>
</content>
  <source>
   <css>div.stub *:not(:contains(&quot;red&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;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
    &lt;li&gt;All the text in this list 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>