summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/dynamic-text-08.svg
blob: ff55f28198fdf8d14b099fca35bde4f16c0cb461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="m();">

  <title>Testcase to scaling from zero</title>

  <g id="g" transform="scale(0)">
    <text x="100" y="50" font-size="50" text-anchor="middle">ABC</text>
  </g>
  <script>
    function m()
    {
      // Force frame construction
      document.documentElement.getBoundingClientRect();

      // A dynamic change
      document.getElementById("g").removeAttribute("transform");
      
      document.documentElement.removeAttribute("class");
    }
  </script>
</svg>