Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
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> |