out-of-flow-in-multicolumn-072.html (830B)
1 <!DOCTYPE html> 2 <title> 3 Nested out-of-flow positioned element affects column balancing. 4 </title> 5 <link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 .multicol { 9 column-count: 4; 10 column-gap: 0px; 11 width: 100px; 12 } 13 .abs { 14 position: absolute; 15 background-color: green; 16 } 17 #target { 18 background-color: red; 19 position: relative; 20 height: 100px; 21 width: 100px; 22 top: -100px; 23 z-index: -1; 24 } 25 </style> 26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 27 <div class="multicol"> 28 <div style="position: relative;"> 29 <div class="abs"> 30 <div class="abs" style="height: 400px; width: 25px;"></div> 31 </div> 32 </div> 33 </div> 34 <div id="target"></div>