tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

viewport-units-scrollbars-root-properties-001.html (680B)


      1 <!doctype html>
      2 <html style="overflow-y: scroll">
      3 <link rel="help" href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths">
      4 <meta name="assert" content="viewport units specified on the root element have accounted for unconditional scrollbars">
      5 
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 
      9 <style>
     10 :root {
     11  padding-left: 10vw;
     12 }
     13 body {
     14  margin: 0;
     15  padding: 0;
     16  background-color: lightyellow;
     17 }
     18 </style>
     19 
     20 <div id="measure">Measure to left</div>
     21 
     22 <script>
     23  test(() => {
     24    assert_less_than(measure.getBoundingClientRect().left, 80);
     25  }, "vw has had the overflow-y scrollbar width removed");
     26 </script>