single-line-column-flex-fragmentation-032.html (1015B)
1 <!DOCTYPE html> 2 <title> 3 Single-line column flex fragmentation: column balancing with forced break. 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 #flex { 9 display: flex; 10 flex-direction: column; 11 background: green; 12 height: 50px; 13 } 14 #flex > div { 15 width: 50px; 16 background: green; 17 } 18 </style> 19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 20 <div style="width:100px; height:100px; background:red;"> 21 <div style="width: 100px; columns: 2; column-gap: 0; position: relative;"> 22 <div id="flex"> 23 <div style="height: 5px;"></div> 24 <div style="height: 10px; break-before: column;"></div> 25 <div style="height: 5px;"> 26 <div style="height: 90px; width: 50px; background: green;"></div> 27 </div> 28 </div> 29 <div style="position: absolute; height: 50px; width: 50px; background: green;"></div> 30 </div> 31 </div>