tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

lang-pseudoclass-002.xht (1809B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3   <head>
      4     <title>CSS Test: :lang pseudoclass</title>
      5     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"/>
      6     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
      7     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang"/>
      8     <link rel="match" href="lang-pseudoclass-001-ref.html" />
      9     <meta name="flags" content="nonHTML" />
     10     <meta name="assert" content=":lang pseudoclass in XHTML should be case sensitive, and match a substring"/>
     11     <style type="text/css"><![CDATA[
     12       div:lang(es) { color:white;background-color:green; }
     13       p:lang(es) { color:white;background-color:green; }
     14       p:lang(fr) { color:white;background-color:green; }
     15       em:lang(de) { color:white;background-color:green; }
     16       div:lang(en-GB) { color:white;background-color:green; }
     17     ]]></style>
     18   </head>
     19   <body>
     20 
     21     <div xml:lang="es">This line should be green</div>
     22     <div xml:lang="es-MX">This line should be green</div>
     23     <div xml:lang="ES">This line should be green</div>
     24 
     25     <div xml:lang="en-GB">This line should be green</div>
     26     <div xml:lang="en-GB-scouse">This line should be green</div>
     27 
     28     <p xml:lang="es">This line should be green <em>and this should be green too</em></p>
     29 
     30     <div xml:lang="fr"><p>This line should be green</p>This line should NOT be green</div>
     31     <p xml:lang="de">This line should NOT be green <em>but this should be green</em></p>
     32 
     33     <div xml:lang="en-US">This line should NOT be green</div>
     34     <div xml:lang="en">This line should NOT be green</div>
     35     <div xml:lang="MX-es">This line should NOT be green</div>
     36 
     37 
     38 
     39   </body>
     40 </html>