1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/image-element/mozsetimageelement-02.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/licenses/publicdomain/ 1.7 + 1.8 + Test that document.mozSetImageElement() after a paint causes a repaint. 1.9 +--> 1.10 +<!DOCTYPE html> 1.11 +<html class="reftest-wait"> 1.12 +<body style="background-image: -moz-element(#e)"> 1.13 + 1.14 +<div style="overflow:hidden; height:0;"> 1.15 + <div id="e" style="width: 50px; height: 50px; background: red;"></div> 1.16 + <div id="white" style="width: 50px; height: 50px; background: white;"></div> 1.17 +</div> 1.18 + 1.19 +<script> 1.20 + 1.21 +window.addEventListener("MozReftestInvalidate", function () { 1.22 + document.mozSetImageElement("e", document.getElementById("white")); 1.23 + document.documentElement.className = ""; 1.24 +}, false); 1.25 + 1.26 +</script> 1.27 +</body> 1.28 +</html>