dynamic-conditions-06.svg 812 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="f()">
  7. <title>Test that changing conditional processing attributes dynamically on outer 'svg' elements while redraw is suspended is honored</title>
  8. <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=615146 -->
  9. <script>
  10. function f() {
  11. var svg = document.documentElement;
  12. svg.suspendRedraw(10000);
  13. setTimeout(function() {
  14. svg.setAttribute("systemLanguage", "x");
  15. svg.unsuspendRedrawAll();
  16. setTimeout(function() {
  17. svg.removeAttribute("class");
  18. }, 1);
  19. }, 1);
  20. }
  21. </script>
  22. <rect width="100%" height="100%" fill="red"/>
  23. </svg>