tor-browser

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

page-margin-auto-negative-print.tentative.html (701B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      3 <link rel="help" href="https://drafts.csswg.org/css-page-3/#page-properties">
      4 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/8508">
      5 <link rel="match" href="page-margin-auto-negative-print-ref.tentative.html">
      6 <style>
      7  @page {
      8    size: 300px;
      9    width: 340px;
     10    height: 340px;
     11    margin: auto;
     12  }
     13  :root {
     14    print-color-adjust: exact;
     15  }
     16  body {
     17    margin: 0;
     18    background: yellow;
     19  }
     20  .fullpager {
     21    width: 300px;
     22    height: 300px;
     23    border: 20px solid red;
     24    background: green;
     25  }
     26 </style>
     27 <div class="fullpager">
     28  Green background, no red / yellow.
     29 </div>