out-of-flow-in-multicolumn-021.html (879B)
1 <!DOCTYPE html> 2 <title> 3 Nested fragmentation for out-of-flow positioned elements create new columns. 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: 2; 10 column-fill: auto; 11 column-gap: 0px; 12 background-color: red; 13 } 14 #outer { 15 height: 100px; 16 width: 100px; 17 } 18 #inner { 19 width: 50px; 20 } 21 .rel { 22 position: relative; 23 } 24 .abs { 25 position: absolute; 26 height: 400px; 27 width: 25px; 28 top: 800px; 29 left: -200px; 30 background-color: green; 31 } 32 </style> 33 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 34 <div class="multicol" id="outer"> 35 <div class="multicol" id="inner"> 36 <div class="rel"> 37 <div class="abs"></div> 38 </div> 39 </div> 40 </div>