tor-browser

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

scrollbar-gutter-dynamic-004.html (950B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>CSS Overflow: scrollbar-gutter changing dynamically on the root element</title>
      5 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      6 <link rel="author" href="https://mozilla.org" title="Mozilla">
      7 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property">
      8 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1874093">
      9 <link rel="match" href="scrollbar-gutter-dynamic-004-ref.html">
     10 <style>
     11 :root {
     12  scrollbar-gutter: stable both-edges;
     13 }
     14 p {
     15  background-color: purple;
     16  color: white;
     17 }
     18 </style>
     19 <p>Should not have space around me in the inline axis.</p>
     20 <script>
     21  document.documentElement.getBoundingClientRect();
     22  document.addEventListener("TestRendered", function() {
     23    document.documentElement.style.scrollbarGutter = "initial";
     24    document.documentElement.className = "";
     25  });
     26 </script>