single-line-row-flex-fragmentation-024.html (991B)
1 <!DOCTYPE html> 2 <title> 3 Single-line row flex fragmentation: Tall margins 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 position: relative; 11 } 12 #flex > div { 13 width: 10px; 14 background: green; 15 } 16 </style> 17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 18 <div style="width: 100px; height: 100px; columns: 5; column-gap: 0; column-fill: auto; background: red;"> 19 <div style="width: 20px; height: 50px; background: green;"></div> 20 <div id="flex"> 21 <div style="margin-top: 100px; height: 300px; break-before: avoid;"></div> 22 <div style="margin-top: 50px; height: 350px; break-before: column;"></div> 23 <div style="position: absolute; height: 150px; top: -50px;"></div> 24 <div style="position: absolute; height: 100px; top: -50px; left: 10px;"></div> 25 </div> 26 </div>