tor-browser

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

attribute-token-selector-002.xht (1088B)


      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: [attr~=""]Attribute Selectors with Empty String Values</title>
      5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/"/>
      6   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#tokenization"/>
      7   <link rel="match" href="attribute-token-selector-002-ref.xht"/>
      8   <meta name="assert" content="[attr~=''] is valid but matches nothing."/>
      9   <style type="text/css">
     10     p {
     11       color: green;
     12     }
     13 
     14     p.valid {
     15       color: red;
     16     }
     17     [title~=""], [title~=''], p.valid {
     18       color: green;
     19     }
     20     [title~=], p.valid {
     21       color: red;
     22     }
     23 
     24     [title~=""] {
     25       color: red;
     26     }
     27   </style>
     28 
     29  </head>
     30  <body>
     31   <p class="valid">This sentence must be green.</p>
     32   <p title="">This sentence must be green.</p>
     33   <p title=" ">This sentence must be green.</p>
     34   <p title="  ">This sentence must be green.</p>
     35   <p title="q">This sentence must be green.</p>
     36 
     37  </body>
     38 </html>