layout/reftests/image-element/image-outside-document-invalidate.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/licenses/publicdomain/
michael@0 4
michael@0 5 Test that document.mozSetImageElement() after an image load causes a repaint.
michael@0 6 -->
michael@0 7 <!DOCTYPE html>
michael@0 8 <html class="reftest-wait">
michael@0 9 <body style="background: -moz-element(#e) red">
michael@0 10
michael@0 11 <script>
michael@0 12
michael@0 13 window.addEventListener("MozReftestInvalidate", function () {
michael@0 14 var img = new Image();
michael@0 15 img.src = "data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs="; /* 1x1 white gif */
michael@0 16 document.mozSetImageElement("e", img);
michael@0 17 img.onload = function () {
michael@0 18 document.documentElement.className = "";
michael@0 19 };
michael@0 20 }, false);
michael@0 21
michael@0 22 </script>
michael@0 23 </body>
michael@0 24 </html>

mercurial