scrollbar-gutter-fixedpos-004-ref.html (587B)
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 writing-mode: vertical-lr; 9 } 10 body { 11 margin: 0; 12 } 13 .box { 14 width: 100px; 15 height: 100px; 16 background: green; 17 } 18 </style> 19 20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 21 <div class="box"></div>