single-line-row-flex-fragmentation-046-print.html (995B)
1 <!DOCTYPE html> 2 <!-- This test is adapted from https://bugzilla.mozilla.org/show_bug.cgi?id=1663079#c8 --> 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=1744363"> 9 <link rel="match" href="single-line-row-flex-fragmentation-046-print-ref.html"> 10 11 <style> 12 @page { size: 5in 3in; margin: 0.5in; } 13 body { 14 margin: 0; 15 } 16 .flexbox { 17 display: flex; /* This triggers the bug. */ 18 border: 0.25in solid black; 19 } 20 .text { 21 block-size: 0.25in; 22 } 23 </style> 24 25 <div class="text">Before Flexbox</div> 26 <div class="flexbox"> 27 <div> 28 <div>1</div> 29 <div style="break-after: page">2</div> 30 <div>3</div> 31 <div>4</div> 32 </div> 33 </div> 34 <div class="text">After Flexbox</div> 35 </html>