tor-browser

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

declarations-009.xht (1503B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      2                       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4  <head>
      5   <title>CSS Test: Ignoring at-rules inside declaration blocks</title>
      6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors"/>
      8   <link rel="match" href="declarations-009-ref.xht"/>
      9   <meta name="flags" content="invalid"/>
     10   <meta name="assert" content="At-rules inside declaration blocks are parsed as malformed declarations."/>
     11   <style type="text/css">
     12     #a {
     13       color: green;
     14       @import "support/import-red.css" color: red;
     15     }
     16     #b {
     17       color: red;
     18       @import "support/import-red.css";
     19       color: green;
     20     }
     21     #c {
     22       color: green;
     23       @media { #c { color: red !important } }
     24       color: red;
     25     }
     26     #d {
     27       color: red;
     28       @media { #c { color: red !important } };
     29       color: green;
     30     }
     31     #e {
     32       color: green;
     33       @foo [ color: red; } #e { color: red; } ]
     34     }
     35     #f {
     36       color: green;
     37       color: red @import "support/import-red.css";
     38     }
     39   </style>
     40  </head>
     41  <body>
     42   <p id="a">This sentence must be green</p>
     43   <p id="b">This sentence must be green</p>
     44   <p id="c">This sentence must be green</p>
     45   <p id="d">This sentence must be green</p>
     46   <p id="e">This sentence must be green</p>
     47   <p id="f">This sentence must be green</p>
     48  </body>
     49 </html>