Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / text / textDecoration2.svg
blobc18e853f836dbe1f119b0d44423ab5abd94bef3b
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 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 <!-- ====================================================================== -->
23 <!-- Test the handling of text decoration, especially in the presence of -->
24 <!-- of dx, dy attributes. -->
25 <!-- @author deweese@apache.org -->
26 <!-- @version $Id: textDecoration2.svg,v 1.3 2004/08/18 07:12:21 vhardy Exp $ -->
27 <!-- ====================================================================== -->
28 <?xml-stylesheet type="text/css" href="../resources/test.css" ?>
30 <svg id="body" width="450" height="500" viewBox="0 0 450 500"
31 xmlns="http://www.w3.org/2000/svg"
32 xmlns:xlink="http://www.w3.org/1999/xlink">
34 <title>Text Decoration with dx,dy Tests</title>
35 <text class="title" x="50%" y="40"
36 >Text Decoration with dx, dy tests</text>
38 <!-- <rect x="0" y="0" width="100%" height="100%" fill="lightgrey"/> -->
39 <g transform="translate(0, 50)"
40 fill="rgb(0,0,0)" font-family="Lucida Grande" font-size="15.0">
41 <text x="31.0" y="24.0" text-decoration="underline"
42 >This is a text<tspan x="31.0" dy="1.2em"
43 >that covers multiple</tspan><tspan x="31.0" dy="1.2em"
44 >lines</tspan></text>
46 <text x="231.0" y="24" text-decoration="underline"
47 >This is a text<tspan x="231.0" y="41"
48 >that covers multiple</tspan><tspan x="231" y="60"
49 >lines</tspan></text>
51 <text x="31.0" y="100" text-decoration="line-through"
52 >Text <tspan dy="-5">that</tspan> <tspan dy="10">shifts</tspan></text>
54 <text x="31.0" y="130"
55 >Text <tspan dy="-5" text-decoration="line-through"
56 >that</tspan> <tspan dy="10">shifts</tspan></text>
58 <text x="31.0" y="160"
59 >Text <tspan dy="-5">that</tspan> <tspan
60 dy="10" text-decoration="line-through">shifts</tspan></text>
62 <text x="31.0" y="200"
63 >Text <tspan dy="-5">that</tspan> <tspan
64 dy="-5" text-decoration="line-through">shifts</tspan></text>
66 <text x="231.0" y="100" text-decoration="overline"
67 >Text <tspan dy="-5">that</tspan> <tspan dy="10">shifts</tspan></text>
69 <text x="231.0" y="130"
70 >Text <tspan dy="-5" text-decoration="overline"
71 >that</tspan> <tspan dy="10">shifts</tspan></text>
73 <text x="231.0" y="160"
74 >Text <tspan dy="-5">that</tspan> <tspan
75 dy="10" text-decoration="overline">shifts</tspan></text>
77 <text x="231.0" y="200"
78 >Text <tspan dy="-5">that</tspan> <tspan
79 dy="-5" text-decoration="overline">shifts</tspan></text>
81 <text x="31.0" y="240" text-decoration="underline"
82 >Text <tspan dy="-5">that</tspan> <tspan dy="10">shifts</tspan></text>
84 <text x="31.0" y="270"
85 >Text <tspan dy="-5" text-decoration="underline"
86 >that</tspan> <tspan dy="10">shifts</tspan></text>
88 <text x="31.0" y="300"
89 >Text <tspan dy="-5">that</tspan> <tspan
90 dy="10" text-decoration="underline">shifts</tspan></text>
92 <text x="31.0" y="330"
93 >Text <tspan dy="-5">that</tspan> <tspan
94 dy="-5" text-decoration="underline">shifts</tspan></text>
97 <text x="231.0" y="240" text-decoration="underline" fill="blue"
98 ><tspan fill="black" stroke="none"
99 >Text <tspan dy="-5">that</tspan> <tspan dy="10"
100 >shifts</tspan></tspan></text>
102 <text x="231.0" y="270" text-decoration="underline" fill="blue"
103 ><tspan fill="black"
104 >Text <tspan dy="-5" text-decoration="line-through" fill="red"
105 ><tspan fill="black">that</tspan></tspan> <tspan dy="10"
106 >shifts</tspan></tspan></text>
108 <text x="231.0" y="300" text-decoration="underline" fill="blue"
109 ><tspan fill="black"
110 >Text <tspan dy="-5">that</tspan> <tspan
111 dy="10" text-decoration="underline" fill="red">
112 <tspan fill="black">shifts</tspan></tspan></tspan></text>
114 <text x="231.0" y="330" text-decoration="underline" fill="blue"
115 ><tspan fill="black"
116 >Text <tspan dy="-5" text-decoration="line-through" fill="red"
117 ><tspan fill="black"
118 >that <tspan dy="10" text-decoration="overline" fill="green"
119 ><tspan fill="black"
120 >shifts</tspan></tspan></tspan></tspan></tspan></text>
122 <text x="131.0" y="370" text-decoration="underline" fill="blue"
123 ><tspan fill="black">Text <tspan y="360">that</tspan>
124 <tspan y="375" >shifts</tspan></tspan></text>
126 </g>
127 </svg>