tor-browser

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

body-background-srl-print.html (969B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-page-3/">
      3 <meta name="assert" content="Body's background is fragmented correctly in sideways-rl writing mode.">
      4 <link rel="match" href="body-background-srl-print-ref.html">
      5 <style>
      6 :root {
      7  print-color-adjust: exact;
      8  writing-mode: sideways-rl;
      9 }
     10 body {
     11  margin: 20px;
     12  background: linear-gradient(to left, lightgray 0%, lightgray 50%, white 50%, white 100%);
     13 }
     14 @page {
     15  size: 800px 600px;
     16  margin: 0;
     17 }
     18 </style>
     19 <div style="writing-mode:horizontal-tb; position:absolute; left:0; top:0; width:200px;">
     20  There should be a right-aligned blue box on the first page, and a
     21  right-aligned hotpink box on the second page.
     22  The background of the first page is lightgray, and the background of the
     23  second page is white.
     24 </div>
     25 <div style="width:600px; height:100px; break-inside:avoid; background:blue;"></div>
     26 <div style="width:800px; height:100px; break-inside:avoid; background:hotpink;"></div>