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

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:a75ecc484697
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/licenses/publicdomain/
4
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">
10
11 <script>
12
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);
21
22 </script>
23 </body>
24 </html>

mercurial