fixedpos-static-pos-with-viewport-cb-002.html (993B)
1 <!DOCTYPE html> 2 <title> 3 Nested fixedpos in a multicol with viewport 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 width: 50px; 13 height: 100px; 14 margin-top: -100px; 15 margin-left: -50px; 16 } 17 .rel { 18 position: relative; 19 height: 300px; 20 } 21 .abs { 22 position: absolute; 23 width: 25px; 24 } 25 .fixed { 26 position: fixed; 27 width: 100px; 28 height: 100px; 29 } 30 </style> 31 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 32 <div class="multicol"> 33 <div class="rel"> 34 <div style="height: 100px;"></div> 35 <div class="abs"> 36 <div style="height: 200px;"></div> 37 <div class="fixed" style="background: green;"></div> 38 </div> 39 </div> 40 </div> 41 <div class="fixed" style="background: red; z-index: -1;"></div>