scrollbar-gutter-fixedpos-003-ref.html (558B)
1 <!DOCTYPE html> 2 <title>CSS Overflow Reference: 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 <style> 6 :root { 7 scrollbar-gutter: stable both-edges; 8 } 9 body { 10 margin: 0; 11 } 12 .box { 13 width: 100px; 14 height: 100px; 15 background: green; 16 } 17 </style> 18 19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 20 <div class="box"></div>