single-line-column-flex-fragmentation-070c.html (1102B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Test that in a column flex container, the break-after values on flex items are honored</title> 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="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1890238"> 8 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> 9 10 <style> 11 .multicol { 12 columns: 2; 13 column-fill: auto; 14 column-gap: 0; 15 width: 100px; 16 height: 300px; 17 } 18 .flexbox { 19 display: flex; 20 flex-direction: column; 21 } 22 .item { 23 background: green; 24 height: 50px; 25 } 26 </style> 27 28 <p>Test passes if there is a filled green square.</p> 29 30 <div class="multicol"> 31 <div class="flexbox"> 32 <div class="flexbox" style="break-after: always; break-after: column"> 33 <div class="item"></div> 34 <div class="item"></div> 35 </div> 36 <div class="flexbox"> 37 <div class="item"></div> 38 <div class="item"></div> 39 </div> 40 </div> 41 </div>