out-of-flow-in-multicolumn-059.html (992B)
1 <!DOCTYPE html> 2 <title> 3 Out-of-flow positioned element in multicol - the relative offset should 4 apply to the OOF descendant after fragmentation. 5 </title> 6 <link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 8 <style> 9 .multicol { 10 column-count: 2; 11 column-fill: auto; 12 column-gap: 0px; 13 height: 100px; 14 width: 100px; 15 margin-left: -150px; 16 margin-top: -150px; 17 } 18 .rel { 19 position: relative; 20 } 21 .abs { 22 position: absolute; 23 background-color: green; 24 height: 200px; 25 width: 50px; 26 top: 0px; 27 } 28 </style> 29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 30 <div class="multicol"> 31 <span class="rel" style="top: 50px; left: 100px;"> 32 <div class="rel" style="top: 100px; left: 50px;"> 33 <div style="height: 200px; width: 50px; background: red;"></div> 34 <span class="abs"></span> 35 </div> 36 </span> 37 </div>