<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-8.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Attribute value selectors (hyphen-separated attributes)</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-9.xml">Substring matching attribute selector (beginning)</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-7b.xml">Attribute multivalue selector</data> </item>
  <item> <name>Test #</name> <data>10 of 296</data> </item>
  <item> <name>Testing</name> <data>Attribute value selectors (hyphen-separated attributes)</data> </item>
  <item> <name>ID</name> <data>8</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" lang="en-gb">This paragraph should have green background because its language is &quot;en-gb&quot;</p>
<address xmlns="http://www.w3.org/1999/xhtml" lang="fi">
<span lang="en-us">This address should also</span>
  <span lang="en-fr">have green background because the language of the inner SPANs
     is not French.</span>
</address>
</content>
  <source>
   <css>p { background-color : red }
p[lang|=&quot;en&quot;] { background-color : lime }
address { background-color : red }
address[lang=&quot;fi&quot;] { background-color : lime }
span[lang|=&quot;fr&quot;] { background-color : red }</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en-gb&quot;&gt;This paragraph should have green background because its language is &amp;quot;en-gb&amp;quot;&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;fi&quot;&gt;
&lt;span lang=&quot;en-us&quot;&gt;This address should also&lt;/span&gt;
  &lt;span lang=&quot;en-fr&quot;&gt;have green background because the language of the inner SPANs
     is not French.&lt;/span&gt;
&lt;/address&gt;
</xml>
  </source>
</test>