<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-133.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED Attribute dash-separated value selector with universal namespace</title>
 <author>Daniel Glazman</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-134.xml">NEGATED Substring matching attribute selector on beginning with universal namespace</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-132.xml">NEGATED Attribute space-separated value selector with universal namespace</data> </item>
  <item> <name>Test #</name> <data>120 of 130 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED Attribute dash-separated value selector with universal namespace</data> </item>
  <item> <name>ID</name> <data>133</data> </item>
  <item> <name>Date</name> <data>11-july-2001</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
   <requirement>The UA must support namespaces for this test.</requirement>
  <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 lang="en-us">This paragraph should NOT have a green background</p>
<p lang="fr" class="foo">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should 
          have a green background</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should 
          have a green background</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should NOT
          have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should
          have a green background</s>
</div>
</content>
  <source>
   <css>@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.foo, *|q, *|s { background-color : red }
div.stub html|*:not([*|lang|="en"]),
  div.stub *|*:not(html|*):not([a|foo|="un-d"]) { background-color : lime }
</css>
   <xml>
&lt;div xmlns="http://www.w3.org/1999/xhtml" class="stub">
&lt;p lang="en-us">This paragraph should NOT have a green background&lt;/p>
&lt;p lang="fr" class="foo">This paragraph should have a green background&lt;/p>
&lt;q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should 
          have a green background&lt;/q>
&lt;q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should 
          have a green background&lt;/q>
&lt;r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should NOT
          have a green background&lt;/r>
&lt;s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should
          have a green background&lt;/s>
&lt;/div>
</xml>
  </source>
</test>