dynamic-text-06.svg 918 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" class="reftest-wait">
  6. <script>
  7. var curXScale = 3;
  8. function sample() {
  9. var g = document.getElementById("g");
  10. g.setAttribute("transform", "scale(" + curXScale + " 1)");
  11. if (curXScale > 1) {
  12. curXScale -= 0.1;
  13. setTimeout("sample()", 1);
  14. } else {
  15. document.documentElement.removeAttribute('class');
  16. }
  17. }
  18. document.addEventListener("MozReftestInvalidate", sample, false);
  19. setTimeout(sample, 4000); // fallback for running outside reftest
  20. </script>
  21. <rect width="100%" height="100%" fill="lime"/>
  22. <g font-family="sans-serif" font-weight="bold" font-size="120px" id="g">
  23. <text y="100">A</text>
  24. <text y="250">V</text>
  25. </g>
  26. <rect width="100" height="100%" fill="lime"/>
  27. </svg>