https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9a2e7a8ddcd0c2bb7475d31c92a5d61705ca1f2f authored by Andrea Marchesini on 04 April 2018, 17:49:15 UTC
Update the StructuredCloneAlgorithm to follow the latest version of the spec,
Tip revision: 9a2e7a8
css3-modsel-22.xml
<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>
back to top