tor-browser

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

page-size-017-print.tentative.html (775B)


      1 <!DOCTYPE html>
      2 <title>Viewport units in @page context are resolved against the default page box size</title>
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="help" href="https://issues.chromium.org/issues/380860850">
      5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5437">
      6 <link rel="match" href="page-size-017-print-ref.html">
      7 <style>
      8  /* The default page box size in WPT is 5 by 3 inches. */
      9  @page {
     10    size: 200vh 100vw; /* 6 by 5 inches */
     11    margin: 10vw; /* 0.5in */
     12  }
     13  :root {
     14    print-color-adjust: exact;
     15  }
     16  body {
     17    margin: 0;
     18    background: yellow;
     19  }
     20 </style>
     21 The page box size should be 6 by 5 inches. Each page margin should be 0.5in,
     22 resulting in a page area size of 5 by 4 inches.