multi-line-column-flex-fragmentation-032.html (1228B)
1 <!DOCTYPE html> 2 <title> 3 Multi-line column flex fragmentation with forced break and negative margin. 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: 5; 10 column-fill: auto; 11 column-gap: 0px; 12 height: 100px; 13 width: 100px; 14 position: relative; 15 background: red; 16 z-index: -1; 17 } 18 #flex { 19 display: flex; 20 flex-direction: column; 21 flex-wrap: wrap; 22 height: 500px; 23 position: relative; 24 } 25 #flex > div { 26 background: green; 27 width: 10px; 28 } 29 </style> 30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 31 <div class="multicol"> 32 <div id="flex"> 33 <div style="height: 150px;"></div> 34 <div style="height: 350px; break-before: column; margin-top: -50px;"></div> 35 <div style="height: 150px;"></div> 36 <div style="height: 300px; break-before: column;"></div> 37 </div> 38 <div style="position: absolute; top: 50px; left: 20px; width: 20px; height: 50px; background: green;"></div> 39 <div style="position: absolute; top: -50px; left: 40px; width: 10px; height: 50px; background: white;"></div> 40 </div>