out-of-flow-in-multicolumn-007.html (920B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking"> 3 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 4 <!-- Tests that a positioned element without a top or bottom property uses the static position - 5 even though it's treated as an OOF element. --> 6 <style> 7 #multicol { 8 column-count: 2; 9 column-fill: auto; 10 column-gap: 0px; 11 height: 100px; 12 width: 100px; 13 /* Move the multicolumn left to account for the first empty column */ 14 position: relative; 15 left: -50px; 16 } 17 .rel { 18 position: relative; 19 } 20 .abs { 21 position: absolute; 22 width: 50px; 23 height: 200px; 24 background: green; 25 } 26 </style> 27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 28 <div id="multicol"> 29 <div class="rel"> 30 <div style="height: 100px; width: 50px;"></div> 31 <div class="abs"></div> 32 </div> 33 </div>