tor-browser

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

contain-paint-050.html (708B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <title>CSS Containment Test: Scrolling overflow works when paint is contained"</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
      5 <link rel="match" href="contain-paint-050-ref.html">
      6 <meta name="assert" content="Scrolling overflow works when paint is contained.">
      7 
      8 <script src="/common/reftest-wait.js"></script>
      9 <script src="/common/rendering-utils.js"></script>
     10 
     11 <style>
     12 body {
     13  contain: paint;
     14 }
     15 .content {
     16  height: 100vh;
     17  width: 100%;
     18 }
     19 </style>
     20 
     21 <body>
     22  <div class="content"></div>
     23 
     24 <script>
     25 waitForAtLeastOneFrame().then(() => {
     26  document.body.scrollTop = 100;
     27  takeScreenshot();
     28 });
     29 </script>
     30 
     31 </body>
     32 </html>