<svg height="1" width="1" onload="runTest()">
  <defs>
    <use id="B">
      <linearGradient>
        <animateTransform attributeName="z"/>
          <text font-family="x">
            <textPath>
              <font>
                <font-face font-family="x">
              </font>
            </textPath>x
          </text>
        </animateTransform>
      </linearGradient>
    </use>
  </defs>
  <use xlink:href="#B"></use>
  <use xlink:href="#B"></use>
</svg>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function runTest() {
    document.body.innerHTML += "PASS: This file should not crash.";
}
</script>
