invalidate-1.html 626 B

12345678910111213141516171819
  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. function endTest() {
  10. document.documentElement.removeAttribute("class");
  11. }
  12. </script>
  13. <body>
  14. <div id="A" style="background:url(repeatable-diagonal-gradient.png?1234); width:100px; height:100px"></div>
  15. <div style="background:-moz-element(#A); width:100px; height:100px;"></div>
  16. </body>
  17. </html>