tor-browser

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

multi-line-row-flex-fragmentation-064-print.html (1436B)


      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  <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
      7  <link rel="match" href="multi-line-row-flex-fragmentation-064-print-ref.html">
      8 
      9  <style>
     10  @page { size: 5in 3in; margin: 0.5in; }
     11 
     12  :root {
     13    print-color-adjust: exact;
     14  }
     15 
     16  body { margin: 0; }
     17 
     18  .flexbox {
     19    display: flex;
     20    flex-wrap: wrap;
     21    border: 0.25in solid black;
     22    font-size: 0.25in;
     23    row-gap: 0.25in;
     24  }
     25  .item {
     26    contain: size;
     27    box-sizing: border-box;
     28    border: 4px solid purple;
     29    flex: 0 0 50%;
     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  <!-- In each item's N-M label, N is the flex line number, and M is the index
     38       of the item in the line. For example, 3-1 is the first item in line
     39       three. -->
     40  <div class="flexbox">
     41    <div class="item" style="flex-basis: 100%">1-1</div>
     42    <div class="item">2-1</div>
     43    <div class="item" style="margin-top: 0.5in;">2-2</div>
     44    <div class="item" style="margin-top: 1.75in; margin-bottom: 0.5in;">3-1</div>
     45    <div class="item">3-2</div>
     46    <div class="item">4-1</div>
     47  </div>
     48 
     49  <div style="height: 0.25in; background: gray;"></div>
     50 </html>