text-style-01a.svg 569 B

123456789101112131415161718192021222324252627282930
  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" onload="m();">
  6. <title>Testcase for style changes</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=395155 -->
  8. <style id="s" type="text/css">
  9. * { fill: red; }
  10. </style>
  11. <script>
  12. function m()
  13. {
  14. var s = document.getElementById("s");
  15. s.appendChild(document.createTextNode("tspan { fill: green }"));
  16. }
  17. </script>
  18. <text>
  19. <tspan x="10" y="50">
  20. This should be green
  21. </tspan>
  22. </text>
  23. </svg>