single-line-row-flex-fragmentation-014.html (826B)
1 <!DOCTYPE html> 2 <title> 3 Single-line row flex fragmentation with break-inside: 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 #flex { 9 display: flex; 10 } 11 #flex > div { 12 background: green; 13 width: 25px; 14 } 15 </style> 16 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 17 <div style="width: 100px; height: 100px; columns: 2; column-gap: 0; column-fill: auto; position: relative; background: red;"> 18 <div style="height: 20px; background: green;"></div> 19 <div style="position: absolute; height: 80px; width: 50%; background: green;"></div> 20 <div id="flex"> 21 <div style="height: 100px;"></div> 22 <div style="break-inside: avoid;"></div> 23 </div> 24 </div>