tor-browser

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

mozsetimageelement-02.html (708B)


      1 <!--
      2     Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/licenses/publicdomain/
      4 
      5     Test that document.mozSetImageElement() after a paint causes a repaint.
      6 -->
      7 <!DOCTYPE html>
      8 <html class="reftest-wait">
      9 <body style="background-image: -moz-element(#e)">
     10 
     11 <div style="overflow:hidden; height:0;">
     12  <div id="e" style="width: 50px; height: 50px; background: red;"></div>
     13  <div id="white" style="width: 50px; height: 50px; background: white;"></div>
     14 </div>
     15 
     16 <script>
     17 
     18 window.addEventListener("MozReftestInvalidate", function () {
     19  document.mozSetImageElement("e", document.getElementById("white"));
     20  document.documentElement.className = "";
     21 });
     22 
     23 </script>
     24 </body>
     25 </html>