<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-22.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:lang() pseudo-class</title>
 <author>Daniel Glazman</author>
 <author>Ian Hickson</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-23.xml">:enabled pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-21c.xml">:target pseudo-class</data> </item>
  <item> <name>Test #</name> <data>27 of 276 of the static tests category</data> </item>
  <item> <name>Testing</name> <data>:lang() pseudo-class</data> </item>
  <item> <name>ID</name> <data>22</data> </item>
  <item> <name>Date</name> <data>2001-11-12</data> </item>
  <item> <name>Revision</name> <data>1.0</data> </item>
 </metadata>
  <content>
<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>
</content>
  <source>
   <css>ul &gt; li { background-color : red }
li:lang(en-GB) { background-color : lime }</css>
   <xml>
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li lang=&quot;en-GB&quot;&gt;This list item should be green because its language is
        British English&lt;/li&gt;
  &lt;li lang=&quot;en-GB-wa&quot;&gt;This list item should be green because its language
        is British English (Wales)&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li lang=&quot;en-US&quot;&gt;This list item should NOT be green because its language
       is US English&lt;/li&gt;
  &lt;li lang=&quot;fr&quot;&gt;This list item should NOT be green because its language is
       French&lt;/li&gt;
&lt;/ol&gt;
</xml>
  </source>
</test>