Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / text / verticalText.svg
blob59a3b2e681785445a29b0567a997fd17913478a3
1 <?xml version="1.0" encoding="UTF-8"?>
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 <!-- Vertical <text> -->
24 <!-- -->
25 <!-- @author dean.jackson@cmis.csiro.au -->
26 <!-- @version $Id: verticalText.svg,v 1.6 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" id="body" width="450" height="500" viewBox="0 0 450 500">
32 <title>Vertical Text Test</title>
34 <defs>
35 <path id="Path1" style="fill:none; stroke:blue;" transform="scale(0.15,0.15)"
36 d="M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 0 1000 100
37 C 1100 200 1200 300 1300 200 C 1400 100 1500 0 1600 100
38 C 1700 200 1800 300 1900 200 C 2000 100 2100 0 2200 100"/>
39 </defs>
41 <g id="content">
43 <text class="title" x="50%" y="40">Vertical Text Test</text>
45 <line x1="20" y1="75" x2="430" y2="75" stroke="black"/>
47 <g opacity="0.5">
48 <circle cx="50" cy="75" r="2" fill="red" />
49 <circle cx="100" cy="75" r="2" fill="red" />
50 <circle cx="150" cy="75" r="2" fill="red" />
51 <circle cx="200" cy="75" r="2" fill="red" />
52 <circle cx="250" cy="75" r="2" fill="red" />
53 <circle cx="300" cy="75" r="2" fill="red" />
54 <circle cx="350" cy="75" r="2" fill="red" />
55 <circle cx="400" cy="75" r="2" fill="red" />
57 <line x1="50" y1="75" x2="50" y2="450" stroke="red" />
58 <line x1="100" y1="75" x2="100" y2="450" stroke="red" />
59 <line x1="150" y1="75" x2="150" y2="450" stroke="red" />
60 <line x1="200" y1="75" x2="200" y2="450" stroke="red" />
61 <line x1="250" y1="75" x2="250" y2="450" stroke="red" />
62 <line x1="300" y1="75" x2="300" y2="450" stroke="red" />
63 <line x1="350" y1="75" x2="350" y2="450" stroke="red" />
64 <line x1="400" y1="75" x2="400" y2="450" stroke="red" />
65 </g>
68 <text x="50" y="75" writing-mode="tb" font-size="15">Writing top to bottom&#x753b;&#x50cf;</text>
69 <text x="100" y="75" glyph-orientation-vertical="auto" writing-mode="tb" font-size="15">Glyph Orientation:auto&#x753b;&#x50cf;</text>
70 <text id="orient0" x="150" y="75" glyph-orientation-vertical="0deg"
71 writing-mode="tb" font-size="15">Glyph Orientation:0&#x753b;&#x50cf;</text>
72 <text id="orient90" x="200" y="75" glyph-orientation-vertical="90deg"
73 writing-mode="tb" font-size="15">Glyph Orientation:90&#x753b;&#x50cf;</text>
74 <text id="orient180" x="250" y="75" glyph-orientation-vertical="180deg"
75 writing-mode="tb" font-size="15">Glyph Orientation:180&#x753b;&#x50cf;</text>
76 <text id="orient270" x="300" y="75" glyph-orientation-vertical="270deg"
77 writing-mode="tb" font-size="15">Glyph Orientation:270&#x753b;&#x50cf;</text>
78 <text x="350" y="75" writing-mode="tb" font-size="15">Embedded <tspan fill="red">&lt;tspan&gt;</tspan> element</text>
79 <text x="400" y="75" writing-mode="tb" font-size="15">Embedded <tspan fill="blue" glyph-orientation-vertical="0deg">orientated</tspan> element</text>
84 <g transform="translate(40,450)">
85 <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
86 <text font-size="12" writing-mode="tb" glyph-orientation-vertical="0deg">
87 <textPath xlink:href="#Path1">Vertical text on a Path&#x753b;&#x50cf;</textPath>
88 </text>
89 </g>
91 </g>
93 <!-- ============================================================= -->
94 <!-- Batik sample mark -->
95 <!-- ============================================================= -->
96 <use xlink:href="../resources/batikLogo.svg#Batik_Tag_Box" />
98 </svg>