suspend-03.svg 782 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/licenses/publicdomain/
  5. -->
  6. <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="f()">
  7. <title>Test that suspendRedraw doesn't apply after the end of a script</title>
  8. <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=734079 -->
  9. <script>
  10. function f() {
  11. var svg = document.documentElement;
  12. setTimeout(function() {
  13. svg.suspendRedraw(10000);
  14. setTimeout(function() {
  15. svg.removeChild(document.getElementById("r"));
  16. svg.removeAttribute("class");
  17. }, 1);
  18. }, 1);
  19. }
  20. </script>
  21. <rect width="100%" height="100%" fill="lime"/>
  22. <rect id="r" width="100%" height="100%" fill="red"/>
  23. </svg>