tor-browser

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

contain-size-removed.html (646B)


      1 <!DOCTYPE html>
      2 <html>
      3 <meta charset="utf-8">
      4 <title>CSS Containment Test: Remove size from style.contain</title>
      5 <link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
      6 <meta name="assert" content="After removing size from style.contain, the element should trigger layout">
      7 <link rel="match" href="reference/pass_if_pass_below_clipped.html">
      8 <style>
      9 
     10 </style>
     11 <p>Test passes if there is the word "PASS" below.</p>
     12 <div id="container" style="contain: size; overflow: hidden;"><span>PASS</span></div>
     13 
     14 <script>
     15 window.requestAnimationFrame(() => {
     16    document.getElementById("container").style.contain = "";
     17 });
     18 </script>