tor-browser

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

style-attr-cascade-001.xht (1030B)


      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: style attributes vs. important tag selector</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/style/001.xml"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
      9   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/>
     10   <link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
     11   <link rel="match" href="reference/ref-green.html" />
     12   <style type="text/css">
     13 
     14    div { color: green ! important; }
     15 
     16   </style>
     17  </head>
     18  <body>
     19   <!--It has a style attribute with "color: red" but an important rule with "color:green".-->
     20   <div style="color: red">This should be green.</div>
     21 
     22  </body>
     23 </html>