layout/reftests/image-element/mozsetimageelement-02.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/licenses/publicdomain/
     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)">
    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>
    16 <script>
    18 window.addEventListener("MozReftestInvalidate", function () {
    19   document.mozSetImageElement("e", document.getElementById("white"));
    20   document.documentElement.className = "";
    21 }, false);
    23 </script>
    24 </body>
    25 </html>

mercurial