out-of-flow-in-multicolumn-058.html (1238B)
1 <!DOCTYPE html> 2 <title> 3 Out-of-flow positioned element in multicol with inline containing block - the 4 relative offset should 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: -400px; 16 margin-top: -400px; 17 } 18 .rel { 19 position: relative; 20 } 21 .abs { 22 position: absolute; 23 background-color: green; 24 width: 50px; 25 } 26 </style> 27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 28 <div class="multicol"> 29 <div class="rel" style="top: 200px; left: 200px;"> 30 <div class="rel" style="top: 50px; left: 50px;"> 31 <span class="rel" style="top: 50px; left: 100px;"> 32 <span class="rel" style="top: 100px; left: 50px;"> 33 <div style="height: 200px; width: 50px; background: red;"></div> 34 <div class="abs" style="top: 0px; height: 50px;"></div> 35 <div class="abs" style="top: 50px; height: 150px;"></div> 36 </span> 37 </span> 38 </div> 39 </div> 40 </div>