Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / textPath-change-reference2-pattern.svg
blobdbc7e1d7a5ff66086e5cec02b42db4638c2f65e6
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 <text x="50" y="50">PASS</text>
4 <pattern id="pat" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
5 <text>
6 <textPath id="theTP" xlink:href="#thePath">FAIL</textPath>
7 </text>
8 </pattern>
9 <rect width="200" height="200" fill="url(#pat)" stroke="black" stroke-width="1"/>
10 <script><![CDATA[
11 function runTest() {
12 var tp = document.getElementById("theTP");
13 tp.setAttributeNS("http://www.w3.org/1999/xlink","href","#wrongPath");
15 ]]></script>
16 </svg>