Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / text / textOnPath2.svg
blob1b0a156515849db5aabed68cef4bf10cc7babf3e
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
5 <!--
7 Copyright 2002-2003 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 -->
22 <?xml-stylesheet type="text/css" href="../resources/test.css" ?>
24 <svg xmlns="http://www.w3.org/2000/svg"
25 xmlns:xlink="http://www.w3.org/1999/xlink"
26 id="body" width="450" height="500" viewBox="0 0 450 500">
28 <title>Text on Path with trailing &lt;tspan></title>
30 <text class="title" x="50%" y="40"
31 >Text on Path with trailing &lt;tspan></text>
33 <rect fill="black" stroke="black" x="30" y="50" width="390" height="20"/>
34 <rect fill="white" stroke="black" x="30" y="70" width="390" height="120"/>
35 <text x="40" y="64" fill="white" font-size="14"
36 >Text with embedded textPath and multiple trailing tspan</text>
38 <rect fill="black" stroke="black" x="30" y="195" width="390" height="20"/>
39 <rect fill="white" stroke="black" x="30" y="215" width="390" height="120"/>
40 <text x="40" y="209" fill="white" font-size="14"
41 >textPath has startOffset="10%"</text>
43 <rect fill="black" stroke="black" x="30" y="340" width="390" height="20"/>
44 <rect fill="white" stroke="black" x="30" y="360" width="390" height="120"/>
45 <text x="40" y="354" fill="white" font-size="14"
46 >textPath with startOffset and text-anchor</text>
47 <defs>
48 <path id="path" style="fill:none; stroke:blue;"
49 d="M100 0 c0 -125 140 -125 140 0"/>
50 </defs>
52 <g transform="translate(40, 185)" >
53 <use xlink:href="#path"/>
54 <text x="10" y="0" fill="black">This is simple<textPath
55 fill="crimson" xlink:href="#path" startOffset="0%"
56 >text on a path<tspan fill="orange" dy="-10"
57 >with nested</tspan><tspan fill="green" dy="10"
58 > tspan</tspan></textPath
59 > xxx <tspan fill="blue" dx="10"
60 >all with </tspan> different links.</text>
61 </g>
64 <g transform="translate(40, 330)" >
65 <use xlink:href="#path"/>
66 <text x="10" y="0" fill="black">This is simple<textPath
67 fill="crimson" xlink:href="#path" startOffset="10%"
68 >text on a path<tspan fill="orange" dy="-10"
69 >with nested</tspan><tspan fill="green" dy="10"
70 > tspan</tspan></textPath
71 > xxx <tspan fill="blue" dx="10"
72 >all with </tspan> different links.</text>
73 </g>
75 <g transform="translate(40, 475)" >
76 <use xlink:href="#path"/>
77 <text x="10" y="0" fill="black">This is simple<textPath
78 fill="crimson" xlink:href="#path"
79 startOffset="50%" text-anchor="middle"
80 >text on a path<tspan fill="orange" dy="-10"
81 >with nested</tspan><tspan fill="green" dy="10"
82 > tspan</tspan></textPath
83 > xxx <tspan fill="blue" dx="10"
84 >all with </tspan> different links.</text>
85 </g>
86 </svg>