summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/foreignObject-dynamic-line-height-01.html
blob: 6eed65e7a30b89ee0a9080909aa57da6a0681206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html class="reftest-wait">
  <svg>
    <foreignObject width="100" height="100">
      This is long text that wraps.
    </foreignObject>
  </svg>
  <script>
    onload = function() {
      var obj = document.querySelector("foreignObject");
      window.w = obj.getBoundingClientRect().width;
      obj.style.lineHeight = 3;
      document.documentElement.className = "";
    }
  </script>
</htmml>