multi-line-column-flex-fragmentation-027.html (1222B)
1 <!DOCTYPE html> 2 <title> 3 Multi-line column flex fragmentation: early break inside columns. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 .multicol { 9 column-count: 2; 10 column-fill: auto; 11 column-gap: 0px; 12 height: 100px; 13 width: 100px; 14 position: relative; 15 background: red; 16 } 17 .abs { 18 position: absolute; 19 width: 50px; 20 background: green; 21 } 22 #flex { 23 display: flex; 24 flex-direction: column; 25 flex-wrap: wrap; 26 height: 200px; 27 } 28 #flex > div { 29 background: green; 30 width: 25px; 31 } 32 </style> 33 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 34 <div class="multicol"> 35 <div class="abs" style="top: 50px; height: 50px;"></div> 36 <div class="abs" style="left: 100px; height: 50px; background: white;"></div> 37 <div id="flex"> 38 <div style="height: 50px;"></div> 39 <div style="height: 50px;"></div> 40 <div style="height: 100px; break-before: avoid;"></div> 41 <div style="height: 50px;"></div> 42 <div style="height: 50px; break-after: avoid;"></div> 43 <div style="height: 100px;"></div> 44 </div> 45 </div>