single-line-column-flex-fragmentation-039.html (1318B)
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: 100px; 13 } 14 #flex > div { 15 width: 25px; 16 background: green; 17 flex: none; 18 } 19 </style> 20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 21 <div style="width: 100px; height: 100px; background: red;"> 22 <div style="width: 100px; columns: 4; column-gap: 0; position: relative;"> 23 <div id="flex"> 24 <div style="height: 5px;"></div> 25 <div style="height: 10px; break-before: column;"></div> 26 <div style="height: 5px;"> 27 <div style="height: 90px; width: 25px; background: green;"></div> 28 </div> 29 <div style="height: 85px;"></div> 30 <div style="height: 5px;"></div> 31 <div style="height: 10px; break-before: column;"></div> 32 <div style="height: 5px;"> 33 <div style="height: 90px; width: 25px; background: green;"></div> 34 </div> 35 </div> 36 <div style="position: absolute; top: 5px; left: 50px; height: 95px; width: 25px; background: green;"></div> 37 </div> 38 </div>