tor-browser

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

clip-rect-scroll.html (924B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: Test clip property with rect function with overflow:scroll</title>
      3 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#clip-property">
      4 <link rel="match" href="reference/clip-rect-scroll-ref.html">
      5 <html class="reftest-wait">
      6 <p>The test passes if there is a green square containing text (which can be scrolled
      7 with mouse wheel or touch). No scrollbars should be seen.</p>
      8 <div id="target" style="position: absolute; clip: rect(10px,100px,100px,10px);
      9            width: 200px; height: 200px; overflow: scroll; background: red">
     10  <div style="position: relative; top: 100px;
     11              width: 100px; height: 100px; background: green">
     12  </div>
     13  <div style="height: 1000px"></div>
     14 </div>
     15 <script>
     16 requestAnimationFrame(() => {
     17  requestAnimationFrame(() => {
     18    target.scrollTop = 100;
     19    document.documentElement.classList.remove("reftest-wait");
     20  });
     21 });
     22 </script>
     23 </html>