<?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-7b.xml">Attribute multivalue selector</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>8 of 273 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>2001-07-11</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml" class="a b c">This paragraph should have green background because CLASS
  contains &quot;b&quot;</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~=&quot;b&quot;] { background-color : lime }
address { background-color : red }
address[title~=&quot;foo&quot;] { background-color : lime }
span[class~=&quot;b&quot;] { background-color : red }</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;a b c&quot;&gt;This paragraph should have green background because CLASS
  contains &amp;quot;b&amp;quot;&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;tot foo bar&quot;&gt;
&lt;span class=&quot;a c&quot;&gt;This address should also&lt;/span&gt;
  &lt;span class=&quot;a bb c&quot;&gt;have green background because the selector in the last
    rule does not apply to the inner SPANs.&lt;/span&gt;
&lt;/address&gt;
</xml>
  </source>
</test>