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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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