invalidate-1.html (626B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <script> 4 /* this test shouldn't need reftest-wait, but if the reftest snapshot is triggered before we've painted, 5 * then we might not get a chance to invalidate the -moz-element div in time 6 * See Bug 1283302 7 */ 8 window.addEventListener("MozReftestInvalidate", endTest); 9 10 function endTest() { 11 document.documentElement.removeAttribute("class"); 12 } 13 </script> 14 <body> 15 <div id="A" style="background:url(repeatable-diagonal-gradient.png?1234); width:100px; height:100px"></div> 16 <div style="background:-moz-element(#A); width:100px; height:100px;"></div> 17 </body> 18 </html>