<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-140.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED Attribute dash-separated value selector without declared 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-141.xml">NEGATED Substring matching attribute selector on beginning without declared namespace</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-139.xml">NEGATED Attribute space-separated value selector without declared namespace</data> </item>
  <item> <name>Test #</name> <data>127 of 130 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED Attribute dash-separated value selector without declared namespace</data> </item>
  <item> <name>ID</name> <data>140</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="foo-bar">This paragraph should NOT have a green background</p>
<address lang="foo-b">This address should have a green background</address>
<address lang="foo-barbar-toto">This address should have a green background</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should NOT
             have a green background</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should
             have a green background</r>
</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, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : red }
div.stub *|*:not([|lang|="foo-bar"]) { background-color : lime }</css>
   <xml>
&lt;div xmlns="http://www.w3.org/1999/xhtml" class="stub">
&lt;p lang="foo-bar">This paragraph should NOT have a green background&lt;/p>
&lt;address lang="foo-b">This address should have a green background&lt;/address>
&lt;address lang="foo-barbar-toto">This address should have a green background&lt;/address>
&lt;q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should NOT
             have a green background&lt;/q>
&lt;r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should
             have a green background&lt;/r>
&lt;/div>
</xml>
  </source>
</test>