scrollbar-gutter-fixedpos-004.html (795B)
1 <!DOCTYPE html> 2 <title>CSS Overflow Test: Root element's scrollbar-gutter is accounted for when computing hypothetical box in fixed-pos positioning</title> 3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1901652"> 6 <link rel="match" href="scrollbar-gutter-fixedpos-004-ref.html"> 7 <style> 8 :root { 9 scrollbar-gutter: stable both-edges; 10 writing-mode: vertical-lr; 11 } 12 body { 13 margin: 0; 14 } 15 .box { 16 width: 100px; 17 height: 100px; 18 } 19 </style> 20 21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 22 <div class="box" style="position: fixed; background: green"></div> 23 <div class="box" style="background: red"></div>