<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-118.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED type element selector with declared namespace</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-119.xml">NEGATED type element selector with universal namespace</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-117b.xml">Substring matching attribute selector on middle without declared namespace</data> </item>
  <item> <name>Test #</name> <data>166 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED type element selector with declared namespace</data> </item>
  <item> <name>ID</name> <data>118</data> </item>
  <item> <name>Date</name> <data>2002-07-30</data> </item>
  <item> <name>Revision</name> <data>1.2</data> </item>
 </metadata>
   <requirement>The UA must support namespaces for this test.</requirement>
  <content>
<div xmlns="http://www.w3.org/1999/xhtml" class="test">
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
 <p xmlns="">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/a">
 <l>This paragraph should have a green background.</l>
 </p>
</div>
</content>
  <source>
   <css>@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|l { display : block ; margin-bottom : 1em }
div.test * { background-color : red }
div.test *:not(a|p) { background-color : lime }
</css>
   <xml>
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;
 &lt;l&gt;This paragraph should have a green background.&lt;/l&gt;
 &lt;/p&gt;
&lt;/div&gt;
</xml>
  </source>
</test>