<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-7.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Attribute multivalue selector</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-8.xml">Attribute value selectors (hyphen-separated attributes)</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-6.xml">Attribute value selector</data> </item>
  <item> <name>Test #</name> <data>7 of 130 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>Attribute multivalue selector</data> </item>
  <item> <name>ID</name> <data>7</data> </item>
  <item> <name>Date</name> <data>11-july-2001</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b">
<p xmlns="http://www.w3.org/1999/xhtml" class="a b c">This paragraph should have green background because CLASS
  contains "b"</p>
<address xmlns="http://www.w3.org/1999/xhtml" title="tot foo bar">
<span class="a c">This address should also</span>
  <span class="a bb c">have green background because the selector in the last
    rule does not apply to the inner SPANs.</span>
</address>
</content>
  <source>
   <css>p { background-color : red }
p[class~="b"] { background-color : lime }
address { background-color : red }
address[title~="foo"] { background-color : lime }
span[class~="b"] { background-color : red }</css>
   <xml>
&lt;p xmlns="http://www.w3.org/1999/xhtml" class="a b c">This paragraph should have green background because CLASS
  contains "b"&lt;/p>
&lt;address xmlns="http://www.w3.org/1999/xhtml" title="tot foo bar">
&lt;span class="a c">This address should also&lt;/span>
  &lt;span class="a bb c">have green background because the selector in the last
    rule does not apply to the inner SPANs.&lt;/span>
&lt;/address>
</xml>
  </source>
</test>