out-of-flow-in-multicolumn-017.html (1001B)
1 <!DOCTYPE html> 2 <title> 3 Out-of-flow static position in nested context. 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 } 13 #outer { 14 height: 100px; 15 width: 300px; 16 } 17 #inner { 18 width: 100px; 19 background-color: red; 20 position: relative; 21 left: -150px; 22 } 23 .rel { 24 position: relative; 25 height: 360px; 26 } 27 .abs { 28 position: absolute; 29 height: 180px; 30 width: 50px; 31 background-color: green; 32 } 33 </style> 34 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 35 <div class="multicol" id="outer"> 36 <div class="multicol" id="inner"> 37 <div class="rel"> 38 <div style="height: 180px;"></div> 39 <div style="column-span: all; height: 20px; background-color: green;"></div> 40 <div class="abs"></div> 41 </div> 42 </div> 43 </div>