tor-browser

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

attribute-value-selector-008.xht (2056B)


      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: attribute selector - att=val</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#attribute-selectors"/>
      8     <link rel="match" href="attribute-value-selector-008-ref.html" />
      9     <meta name="flags" content="nonHTML"/>
     10     <meta name="assert" content="attribute selector with att=val in XHTML should be case sensitive, and should only match when att is exactly val"/>
     11     <style type="text/css"><![CDATA[
     12       div[title="es"] { color:white;background-color:green; }
     13       p[title="es"] { color:white;background-color:green; }
     14       div[title="en-GB"] { color:white;background-color:green; }
     15       p[title="fr"] { color:white;background-color:green; }
     16       em[title="de"] { color:white;background-color:green; }
     17       div[title=" no"] { color:white;background-color:green; }
     18     ]]></style>
     19   </head>
     20   <body>
     21 
     22     <div title="es">This line should be green</div>
     23     <div title='es'>This line should be green</div>
     24     <div title="en-GB">This line should be green</div>
     25     <p title="es">This line should be green <em>and this should also be green</em></p>
     26 
     27     <div title="es-MX">This line should NOT be green</div>
     28     <div title="ES">This line should NOT be green</div>
     29     <div title="MX-es">This line should NOT be green</div>
     30 
     31     <div title="en-GB-scouse">This line should NOT be green</div>
     32     <div title="en-US">This line should NOT be green</div>
     33     <div title="en">This line should NOT be green</div>
     34     <div title="no">This line should NOT be green</div>
     35 
     36     <div title="fr">This line should NOT be green<p>This line should NOT be green</p></div>
     37     <p title="de">This line should NOT be green <em>and this should not be green either</em></p>
     38 
     39 </body>
     40 </html>