dynamic-text-05.svg 667 B

123456789101112131415161718192021
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
  6. <title>Testcase for text removal</title>
  7. <script>
  8. document.addEventListener("MozReftestInvalidate", doTest, false);
  9. setTimeout(doTest, 4000); // fallback for running outside reftest
  10. function doTest() {
  11. document.getElementById("text").firstChild.nodeValue='';
  12. document.documentElement.removeAttribute("class");
  13. }
  14. </script>
  15. <rect width="100%" height="100%" fill="lime"/>
  16. <text id="text" font-size="32" x="40" y="40">SHOULD NOT SEE ME</text>
  17. </svg>