single-line-column-flex-fragmentation-064.html (1356B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <title>Tests un-fragmentable flex item is pushed to the next column without overflowing the flex container.</title> 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="../../reference/ref-filled-green-100px-square.xht"> 10 <style> 11 .multicol { 12 column-count: 4; 13 column-gap: 0; 14 column-fill: auto; 15 background: red; 16 width: 100px; 17 height: 100px; 18 } 19 20 .multicol > div { 21 background: green; 22 } 23 24 .flexbox { 25 display: flex; 26 flex-direction: column; 27 height: 280px; 28 justify-content: space-between; 29 border: 5px solid green; 30 } 31 32 .flexbox > div { 33 contain: size; 34 width: 15px; 35 height: 40px; 36 } 37 </style> 38 39 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 40 <div class="multicol"> 41 <!-- This div makes the flexbox not at the top of first column. --> 42 <div style="width: 100%; height: 50px;"></div> 43 44 <div class="flexbox"> 45 <div></div> 46 <div></div> 47 </div> 48 49 <div style="width: 100%; height: 60px;"></div> 50 </div> 51 </html>