Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / text / textPosition.svg
blobf5a7b9c0f6574a04e4d1bec54531ced30345c540
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 2001-2002 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 <!-- ========================================================================= -->
23 <!-- Test the x,dx and y,dy attributes -->
24 <!-- -->
25 <!-- @author tkormann@ilog.fr -->
26 <!-- @version $Id: textPosition.svg,v 1.4 2004/08/18 07:12:23 vhardy Exp $ -->
27 <!-- ========================================================================= -->
28 <?xml-stylesheet type="text/css" href="../resources/test.css" ?>
30 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500">
31 <title>Text Position</title>
33 <style type="text/css"><![CDATA[
34 .info {
35 font-family: Arial;
36 font-size: 10px;
38 ]]>
39 </style>
41 <!-- ============================================================= -->
42 <!-- Test content -->
43 <!-- ============================================================= -->
45 <text class="title" x="50%" y="30">Text Position</text>
47 <g id="testContent" style="font-family:Arial; font-size:24px">
49 <!-- ################################################################ -->
51 <text x="50" y="80">Batik</text>
52 <text x="50" y="100" class="info">&lt;text x="100" y="80"></text>
54 <text x="240" y="80" style="letter-spacing:20">Batik</text>
55 <text x="240" y="100" class="info">&lt;text x="240" y="80" letter-spacing="20"></text>
58 <text x="50 70 90 110 130" y="140">Batik</text>
59 <text x="50" y="160" class="info">&lt;text x="50 70 90 110 130" y="140"></text>
61 <text dx="240 20 20 20 20" y="140">Batik</text>
62 <text x="240" y="160" class="info">&lt;text dx="240 20 20 20 20" y="140"></text>
64 <!-- ################################################################ -->
66 <text><tspan x="50" y="200">Batik</tspan></text>
67 <text x="50" y="220" class="info">&lt;tspan x="50" y="200"></text>
69 <text><tspan x="240" y="200" style="letter-spacing:20">Batik</tspan></text>
70 <text><tspan x="240" y="220" class="info">&lt;tspan x="240" y="200" letter-spacing="20"></tspan></text>
73 <text><tspan x="50 70 90 110 130" y="260">Batik</tspan></text>
74 <text x="50" y="280" class="info">&lt;tspan x="50 70 90 110 130" y="260"></text>
76 <text><tspan dx="240 20 20 20 20" y="260">Batik</tspan></text>
77 <text x="240" y="280" class="info">&lt;tspan dx="240 20 20 20 20" y="260"></text>
79 <!-- ################################################################ -->
81 <text><tspan x="50 60 70 80 90" dx="0 10 20 30 40" y="320">Batik</tspan></text>
82 <text x="50" y="340" class="info">&lt;tspan x="50 60 70 80 90" <tspan x="83" dy="1.1em">dx="0 10 20 30 40" y="320"></tspan></text>
85 <text><tspan x="240" dx="0 10 10 10 10" y="320" style="letter-spacing:10">Batik</tspan></text>
86 <text x="240" y="340" class="info">&lt;tspan x="240" dx="0 10 10 10 10" <tspan x="273" dy="1.1em">y="320" style="letter-spacing:10"></tspan></text>
89 <!-- ################################################################ -->
91 <text><tspan x="50" letter-spacing="10" y="380">Batik</tspan><tspan x="10" y="380"/></text>
92 <text x="50" y="400" class="info">Empty Trailing tspan</text>
95 <text><tspan x="200" y="380"/><tspan x="240" letter-spacing="20" y="380">Batik</tspan></text>
96 <text x="240" y="400" class="info">Empty Preceeding tspan</text>
99 </g>
101 <!-- ============================================================= -->
102 <!-- Batik sample mark -->
103 <!-- ============================================================= -->
104 <use xlink:href="../resources/batikLogo.svg#Batik_Tag_Box" />
106 </svg>