972199-1.html 847 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait">
  3. <head>
  4. <style type="text/css">
  5. @keyframes anim {
  6. 0% { transform: translate(0px) }
  7. 100% { transform: translate(100px) }
  8. }
  9. div {
  10. width: 100px;
  11. height: 100px;
  12. background-color: white;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div></div>
  18. <script type="application/javascript">
  19. window.addEventListener("load", function() {
  20. document.querySelector("div").setAttribute("style",
  21. "animation: 100s 300s anim linear");
  22. advance_clock(200000);
  23. advance_clock(300000);
  24. Promise.resolve().then(function() {
  25. SpecialPowers.DOMWindowUtils.restoreNormalRefresh();
  26. }).then(function() {
  27. document.documentElement.className = "";
  28. });
  29. });
  30. function advance_clock(milliseconds) {
  31. SpecialPowers.DOMWindowUtils.advanceTimeAndRefresh(milliseconds);
  32. }
  33. </script>
  34. </html>