tor-browser

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

at-page-rule-001.xht (1229B)


      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/page.html#page-box"/>
      8   <meta name="flags" content="invalid paged"/>
      9   <meta name="assert" content="At-rules inside @page blocks are parsed as invalid at-rule statements."/>
     10   <style type="text/css">
     11     @page {
     12       @import "support/import-red";
     13       margin-left: 50%;
     14       @media print { }
     15       margin-top: 50%;
     16     }
     17     @page {
     18       @media print { }
     19       margin-top: 0;
     20     }
     21     @page {
     22       margin-top: 0
     23       @media print {}
     24     }
     25     @page {
     26       margin-top: 0
     27       @media print;
     28     }
     29     @page {
     30       @import "support/import-red"
     31       margin-top: 0;
     32     }
     33     html, body, p {
     34       margin: 0;
     35       padding: 0;
     36     }
     37     p {
     38       border: solid blue;
     39     }
     40   </style>
     41  </head>
     42  <body>
     43    <p class="import">When printed the top left corner of this box must be in
     44      the exact center of this page.</p>
     45  </body>
     46 </html>