<!DOCTYPE html>
<html>
  <head>
    <script>
    if (window.testRunner)
        testRunner.dumpAsText();
    </script>
  </head>
  <body>
    <svg viewbox="0 0 1000 500">
      <g transform="scale(3.0)">
        <foreignobject width="300" height="50">
          <textarea>scaled text</textarea>
        </foreignobject>
      </g>
    </svg>
    This test passes if it does not crash.
  </body>
</html>
