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