dynamic-addremove-1b.html 495 B

12345678910111213141516
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait">
  3. <body style="margin:0;">
  4. <div id="t" style="width:100px; height:100px; background:yellow;">
  5. <div style="position:fixed; left:50px; top:50px; width:100px; height:100px; background:orange;"></div>
  6. </div>
  7. <script>
  8. function doTest() {
  9. document.getElementById("t").style.transform = "translate(80px,20px)";
  10. document.documentElement.removeAttribute("class");
  11. }
  12. window.addEventListener("MozReftestInvalidate", doTest, false);
  13. </script>
  14. </body>
  15. </html>