Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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 a paint causes a repaint. |
michael@0 | 6 | --> |
michael@0 | 7 | <!DOCTYPE html> |
michael@0 | 8 | <html class="reftest-wait"> |
michael@0 | 9 | <body style="background-image: -moz-element(#e)"> |
michael@0 | 10 | |
michael@0 | 11 | <div style="overflow:hidden; height:0;"> |
michael@0 | 12 | <div id="e" style="width: 50px; height: 50px; background: red;"></div> |
michael@0 | 13 | <div id="white" style="width: 50px; height: 50px; background: white;"></div> |
michael@0 | 14 | </div> |
michael@0 | 15 | |
michael@0 | 16 | <script> |
michael@0 | 17 | |
michael@0 | 18 | window.addEventListener("MozReftestInvalidate", function () { |
michael@0 | 19 | document.mozSetImageElement("e", document.getElementById("white")); |
michael@0 | 20 | document.documentElement.className = ""; |
michael@0 | 21 | }, false); |
michael@0 | 22 | |
michael@0 | 23 | </script> |
michael@0 | 24 | </body> |
michael@0 | 25 | </html> |