multi-line-column-flex-fragmentation-016.html (2331B)
1 <!DOCTYPE html> 2 <title> 3 Tests that flex-items get pushed down due to a previous flex row expanding as 4 a result of fragmentation with margin-top. 5 </title> 6 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> 7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 8 <style> 9 #flex { 10 display: flex; 11 flex-direction: column; 12 flex-wrap: wrap; 13 height: 500px; 14 } 15 #flex > div { 16 background: green; 17 width: 10px; 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; columns: 5; column-gap: 0; column-fill: auto; background: red;"> 22 <div id="flex"> 23 <div> 24 <div style="contain: size; width: 10px; height: 80px;"></div> 25 <div style="contain: size; width: 10px; height: 30px;"></div> 26 </div> 27 <div style="position: relative;"> 28 <div style="contain: size; width: 10px; height: 70px;"></div> 29 <div style="contain: size; width: 10px; height: 40px;"></div> 30 <div style="position: absolute; width: 10px; height: 60px; background: green;"></div> 31 </div> 32 <div style="margin-top: 10px;"> 33 <div style="contain: size; width: 10px; height: 80px;"></div> 34 <div style="contain: size; width: 10px; height: 40px;"></div> 35 </div> 36 <div style="height: 100px;"></div> 37 <div style="height: 60px;"></div> 38 <div style="margin-top: 10px; position: relative;"> 39 <div style="position: absolute; top: -10px; width: 10px; height: 10px; background: green;"></div> 40 <div style="contain: size; width: 10px; height: 30px;"></div> 41 <div style="contain: size; width: 10px; height: 80px;"></div> 42 <div style="position: absolute; width: 10px; height: 20px; background: green;"></div> 43 </div> 44 <div> 45 <div style="contain: size; width: 10px; height: 40px;"></div> 46 <div style="contain: size; width: 10px; height: 70px;"></div> 47 </div> 48 <div style="position: relative;"> 49 <div style="contain: size; width: 10px; height: 30px;"></div> 50 <div style="contain: size; width: 10px; height: 80px;"></div> 51 <div style="contain: size; width: 10px; height: 40px;"></div> 52 <div style="position: absolute; bottom: 0px; left: -10px; width: 20px; height: 40px; background: white;"></div> 53 </div> 54 </div> 55 </div>