OLD | NEW |
| (Empty) |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runTest()"> | |
2 <path id="thePath" d="M50 50 L 450 50" /> | |
3 <pattern id="pat" patternUnits="userSpaceOnUse" x="0" y="0" width="400" height
="400"> | |
4 <text x="50" y="100">This text should be ABOVE the other line.</text> | |
5 <text> | |
6 <textPath id="theTP" xlink:href="#thePath">This text should be BELOW the o
ther line.</textPath> | |
7 </text> | |
8 </pattern> | |
9 <rect width="400" height="400" fill="url(#pat)" stroke="black" stroke-width="1
"/> | |
10 <script><![CDATA[ | |
11 function runTest() { | |
12 var path = document.getElementById("thePath"); | |
13 pathSegList = path.pathSegList; | |
14 pathSegList.clear(); | |
15 pathSeg = path.createSVGPathSegMovetoAbs(50, 150); | |
16 pathSegList.appendItem(pathSeg); | |
17 pathSeg = path.createSVGPathSegLinetoAbs(450, 150); | |
18 pathSegList.appendItem(pathSeg); | |
19 } | |
20 ]]></script> | |
21 </svg> | |
OLD | NEW |