suspend-08.svg 917 B

1234567891011121314151617181920212223242526272829
  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 unsuspendRedrawAll works</title>
  8. <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=615146 -->
  9. <script>
  10. function f() {
  11. var svg = document.documentElement;
  12. setTimeout(function() {
  13. svg.suspendRedraw(10000);
  14. setTimeout(function() {
  15. var r = document.createElementNS("http://www.w3.org/2000/svg", "rect");
  16. r.setAttribute("width", "100%");
  17. r.setAttribute("height", "100%");
  18. r.setAttribute("fill", "lime");
  19. svg.appendChild(r);
  20. svg.unsuspendRedrawAll();
  21. svg.removeAttribute("class");
  22. }, 1);
  23. }, 1);
  24. }
  25. </script>
  26. <rect width="100%" height="100%" fill="red"/>
  27. </svg>