Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / textPath-change-reference-pattern.svg
blobac6cbed205be8b97ba18aa8abacc4f3bac37c365
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
2 <path id="thePath" d="M50 50 L 150 50" />
3 <pattern id="pat" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
4 <text>
5 <textPath id="theTP" xlink:href="#wrongPath">PASS</textPath>
6 </text>
7 </pattern>
8 <rect width="200" height="200" fill="url(#pat)" stroke="black" stroke-width="1"/>
9 <script><![CDATA[
10 function runTest() {
11 var tp = document.getElementById("theTP");
12 tp.setAttributeNS("http://www.w3.org/1999/xlink","href","#thePath");
14 ]]></script>
15 </svg>