tor-browser

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

page-background-004-print.html (1134B)


      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/#painting">
      4 <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#background-clip">
      5 <meta name="assert" content="The root element has a different background painting area and thus the background-clip property has no effect when specified on it.">
      6 <link rel="match" href="page-background-004-print-ref.html">
      7 <style>
      8  :root {
      9    print-color-adjust: exact;
     10  }
     11  @page {
     12    size: 500px 300px;
     13    margin: 50px;
     14    border: 10px solid;
     15    padding: 50px;
     16    background-color: yellow;
     17  }
     18  @page border {
     19    background-clip: border-box;
     20  }
     21  @page padding {
     22    background-clip: padding-box;
     23  }
     24  @page content {
     25    background-clip: content-box;
     26  }
     27  body {
     28    margin: 0;
     29  }
     30 </style>
     31 <div style="page:border;">
     32  This page should be completely yellow (with a border).
     33 </div>
     34 <div style="page:padding;">
     35  This page should be completely yellow (with a border).
     36 </div>
     37 <div style="page:content;">
     38  This page should be completely yellow (with a border).
     39 </div>