summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/text-stroke-scaling-02a.html
blob: 194b58cd06278a3886df7a4e7c1e80020a5ce4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
  <svg width="500" height="400">
    <text x="0" y="20" style="stroke: orange; stroke-width: 2px"
          transform="scale(4)">
      This is some text
    </text>
  </svg>
  <script>
    onload = function() {
      var obj = document.querySelector("text");
      window.w = obj.getBoundingClientRect().width;
      obj.style.vectorEffect = "non-scaling-stroke";
      document.documentElement.className = "";
    }
  </script>
</html>