tor-browser

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

multi-line-row-flex-fragmentation-075-print-ref.html (1339B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      5  <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      6 
      7  <style>
      8  @page { size: 5in 3in; margin: 0.5in; }
      9 
     10  :root {
     11    print-color-adjust: exact;
     12  }
     13 
     14  body { margin: 0; }
     15 
     16  .flexbox {
     17    border: 0.25in solid black;
     18    font-size: 0.25in;
     19    height: 3in;
     20  }
     21  .flexbox > div {
     22    position: relative;
     23  }
     24  .item {
     25    position: absolute;
     26    contain: size;
     27    box-sizing: border-box;
     28    border: 4px solid purple;
     29    width: 25%;
     30    height: 0.5in;
     31  }
     32  </style>
     33 
     34  <!-- This div makes the flexbox not at the top of first page. -->
     35  <div style="height: 0.25in; background: gray;"></div>
     36 
     37  <div class="flexbox">
     38    <div style="height: 1.5in;">
     39      <div class="item" style="top: 1in">1</div>
     40      <div class="item" style="left: 25%;">2</div>
     41    </div>
     42    <div style="height: 1in;">
     43      <div class="item" style="left: 50%; height: 1in;">3</div>
     44      <div class="item" style="left: 75%;">4</div>
     45    </div>
     46    <div>
     47      <div class="item">5</div>
     48      <div class="item" style="left: 25%">6</div>
     49      <div class="item" style="left: 50%">7</div>
     50      <div class="item" style="left: 75%">8</div>
     51    </div>
     52  </div>
     53 
     54  <div style="height: 0.25in; background: gray;"></div>
     55 </html>