blob: 5996160912dea2c114a46a0b7b544fa9871ce686 [file] [log] [blame]
<csstest def=":lang() pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="22" rev="1.0" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests">
<author>Daniel Glazman</author>
<author>Ian Hickson</author>
<cssrules>ul &gt; li { background-color : red }
li:lang(en-GB) { background-color : lime }</cssrules>
<code>
<ul xmlns="http://www.w3.org/1999/xhtml">
<li lang="en-GB">This list item should be green because its language is
British English</li>
<li lang="en-GB-wa">This list item should be green because its language
is British English (Wales)</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
<li lang="en-US">This list item should NOT be green because its language
is US English</li>
<li lang="fr">This list item should NOT be green because its language is
French</li>
</ol>
</code>
</csstest>