<?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>101 of 246 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>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">This paragraph should have a green background.</p>
  <ul class="red">
    <li>All this list, including bullets</li>
    <li>and all text, should be green.</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 this list, including bullets&lt;/li&gt;
    &lt;li&gt;and all text, should be green.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
</xml>
  </source>
</test>