layout/reftests/image-element/image-outside-document-invalidate.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 an image load causes a repaint.
     6 -->
     7 <!DOCTYPE html>
     8 <html class="reftest-wait">
     9 <body style="background: -moz-element(#e) red">
    11 <script>
    13 window.addEventListener("MozReftestInvalidate", function () {
    14   var img = new Image();
    15   img.src = "data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs="; /* 1x1 white gif */
    16   document.mozSetImageElement("e", img);
    17   img.onload = function () {
    18     document.documentElement.className = "";
    19   };
    20 }, false);
    22 </script>
    23 </body>
    24 </html>

mercurial