haikuwebkit/LayoutTests/svg/custom/textPath-change-reference2-...

14 lines
424 B
XML

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
<path id="thePath" d="M150 50 L 450 50" />
<text x="50" y="50">PASS</text>
<text>
<textPath id="theTP" xlink:href="#thePath">FAIL</textPath>
</text>
<script><![CDATA[
function runTest() {
var tp = document.getElementById("theTP");
tp.href.baseVal = "#wrongPath";
}
]]></script>
</svg>