multi-line-row-flex-fragmentation-076-print.html (1454B)
1 <!DOCTYPE html> 2 <!-- This is a multi-line extension of: single-line-row-flex-fragmentation-042-print.html --> 3 <html> 4 <meta charset="utf-8"> 5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 6 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 7 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> 8 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1743890"> 9 <link rel="match" href="multi-line-row-flex-fragmentation-076-print-ref.html"> 10 11 <style> 12 @page { size: 5in 3in; margin: 0.5in; } 13 14 :root { 15 print-color-adjust: exact; 16 } 17 18 body { margin: 0; } 19 20 .flexbox { 21 display: flex; 22 border: 0.25in solid black; 23 font-size: 0.25in; 24 flex-flow: row wrap; 25 } 26 .item { 27 contain: size; 28 box-sizing: border-box; 29 border: 4px solid purple; 30 width: 25%; 31 height: 0.5in; 32 } 33 </style> 34 35 <!-- This div makes the flexbox not at the top of first page. --> 36 <div style="height: 0.25in; background: gray;"></div> 37 38 <div class="flexbox"> 39 <div class="item" style="margin-top: 0.5in;">1</div> 40 <div class="item">2</div> 41 <div class="item" style="margin-top: 1in; height: 1in;">3</div> 42 <div class="item" style="margin-top: 2in;">4</div> 43 <div class="item">5</div> 44 <div class="item">6</div> 45 <div class="item">7</div> 46 <div class="item">8</div> 47 </div> 48 49 <div style="height: 0.25in; background: gray;"></div> 50 </html>