out-of-flow-in-multicolumn-091.html (875B)
1 <!DOCTYPE html> 2 <title> 3 Nested fixedpos in a where the multicol is the containing block. 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 height: 100px; 13 width: 100px; 14 transform: translateX(0); 15 } 16 .rel { 17 position: relative; 18 } 19 .abs { 20 position: absolute; 21 } 22 .fixed { 23 position: fixed; 24 height: 100%; 25 width: 100%; 26 top: -100px; 27 background:green; 28 } 29 </style> 30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 31 <div style="height: 100px; width: 100px; background: red;"></div> 32 <div class="multicol"> 33 <div class="rel"> 34 <div class="abs"> 35 <div class="fixed"></div> 36 </div> 37 </div> 38 </div>