single-line-column-flex-fragmentation-016.html (1025B)
1 <!DOCTYPE html> 2 <title> 3 Single-line column flex fragmentation with break-before: avoid. 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: 4; 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 height: 50px; 20 width: 25px; 21 } 22 </style> 23 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 24 <div class="multicol"> 25 <div style="display: flex; flex-direction: column; width: 25px;"> 26 <div style="height: 50px; background: green;"></div> 27 <div style="height: 50px; background: green;"></div> 28 <div style="height: 300px; break-before: avoid; background: green;"></div> 29 </div> 30 <div class="abs" style="background: green; top: 50px; left: 0px;"></div> 31 <div class="abs" style="background: white; top: 0px;"></div> 32 </div>