17 lines
647 B
XML
17 lines
647 B
XML
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
|
||
|
<path id="thePath" d="M50 50 L 150 50" />
|
||
|
<text x="50" y="50">PASS</text>
|
||
|
<pattern id="pat" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
|
||
|
<text>
|
||
|
<textPath id="theTP" xlink:href="#thePath">FAIL</textPath>
|
||
|
</text>
|
||
|
</pattern>
|
||
|
<rect width="200" height="200" fill="url(#pat)" stroke="black" stroke-width="1"/>
|
||
|
<script><![CDATA[
|
||
|
function runTest() {
|
||
|
var tp = document.getElementById("theTP");
|
||
|
tp.setAttributeNS("http://www.w3.org/1999/xlink","href","#wrongPath");
|
||
|
}
|
||
|
]]></script>
|
||
|
</svg>
|