blob: 8ad15c3ed3f1676bab51ff027ed6b33c49bb61bd [file] [log] [blame]
<csstest def="Attribute value selectors (hyphen-separated attributes)" module="W3C Selectors" modulename="css3-modsel" number="8" rev="1.0" date="11-july-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns="http://www.example.org/css3tests">
<author>Daniel Glazman</author>
<cssrules>p { background-color : red }
p[lang|="en"] { background-color : lime }
address { background-color : red }
address[lang="fi"] { background-color : lime }
span[lang|="fr"] { background-color : red }</cssrules>
<code>
<p lang="en-gb" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have green background because its language is "en-gb"</p>
<address lang="fi" xmlns="http://www.w3.org/1999/xhtml">
<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>
</code>
</csstest>