viewport-units-gutter-006.html (1059B)
1 <!doctype html> 2 <html style="overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: none"> 3 <link rel="help" href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths"> 4 <meta name="assert" content="vw is not reduced in the presence of a scrollbar gutter when scrollbar-width is 'none'"> 5 6 <!-- This test uses checkLayout instead of a reference because it's unclear how elements that overlap with the gutter should be laid out and painted. See https://github.com/w3c/csswg-drafts/issues/5253 --> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/resources/check-layout-th.js"></script> 10 11 <body style="margin: 0; padding: 0;"> 12 <div style="width: 100vw; height: 100px; background: orange; box-sizing: border-box; border-left: 3px solid blue; border-right: 3px solid blue;" id="test-div"></div> 13 14 <script> 15 let testDiv = document.getElementById('test-div'); 16 testDiv.setAttribute("data-expected-width", window.innerWidth); 17 checkLayout("#test-div"); 18 </script> 19 20 </body> 21 </html>