Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / text / textProperties2.svg
blob96efb1154e8b941d43c3c1ffbcbf30482f9a2a38
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 description here -->
24 <!-- -->
25 <!-- @author bill.haneman@ireland.sun.com -->
26 <!-- @version $Id: textProperties2.svg,v 1.1 2004/11/21 21:20:23 deweese Exp $ -->
27 <!-- ========================================================================= -->
28 <?xml-stylesheet type="text/css" href="../resources/test.css" ?>
30 <svg 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 Properties</title>
36 <!-- ============================================================= -->
37 <!-- Test content -->
38 <!-- ============================================================= -->
40 <defs>
42 <style type="text/css"><![CDATA[
43 .Caption { font-size: 8; font-family: dialog; font-weight: normal;
44 font-style: normal; stroke: none; stroke-width: 0;
45 fill: black }
46 text > tspan { fill: blue; }
47 text > tspan > tspan { fill: purple; }]]>
48 </style>
49 </defs>
51 <g id="testContent">
52 <text class="title" x="50%" y="40" font-size="15px" >
53 Text display and visibility.</text>
55 <text x="50%" y="74" text-anchor="middle"
56 >Visibility on text &amp; tspans</text>
57 <text x="50%" y="200" text-anchor="middle"
58 >Display on text &amp; tspans</text>
60 <g stroke="black" stroke-width="1">
61 <rect x="12.5" y="82" width="425" height="25" fill="#EEE"/>
62 <rect x="12.5" y="107" width="425" height="25" fill="#CCC"/>
63 <rect x="12.5" y="132" width="425" height="25" fill="#EEE"/>
64 <rect x="12.5" y="157" width="425" height="25" fill="#CCC"/>
65 <line x1="340" x2="340" y1="82" y2="182"/>
67 <rect x="12.5" y="207" width="425" height="25" fill="#EEE"/>
68 <rect x="12.5" y="232" width="425" height="25" fill="#CCC"/>
69 <rect x="12.5" y="257" width="425" height="25" fill="#EEE"/>
70 <rect x="12.5" y="282" width="425" height="25" fill="#CCC"/>
71 <rect x="12.5" y="307" width="425" height="25" fill="#EEE"/>
72 <line x1="340" x2="340" y1="207" y2="332"/>
73 </g>
75 <text class="Caption" x="360" y="97" >vis, vis, vis</text>
76 <text class="Caption" x="360" y="122">vis, hid, vis</text>
77 <text class="Caption" x="360" y="147">vis, hid, hid</text>
78 <text class="Caption" x="360" y="172">hid, vis, hid</text>
80 <text class="Caption" x="360" y="223">inline, inline, inline</text>
81 <text class="Caption" x="360" y="248">inline, inline, none</text>
82 <text class="Caption" x="360" y="273">inline, none, inline</text>
83 <text class="Caption" x="360" y="298">inline, none, none</text>
84 <text class="Caption" x="360" y="323">none, inline, none</text>
86 <g transform="scale(1.25), translate(0, 10)">
87 <text x="20" y="70">Text <tspan>tspan 1 <tspan> tspan 2</tspan> more span 1</tspan> finish text</text>
89 <text x="20" y="90">Text <tspan visibility="hidden">tspan 1 <tspan visibility="visible"> tspan 2</tspan> more span 1</tspan> finish text</text>
91 <text x="20" y="110">Text <tspan visibility="hidden">tspan 1 <tspan visibility="hidden"> tspan 2</tspan> more span 1</tspan> finish text</text>
93 <text x="20" y="130" visibility="hidden">Text <tspan visibility="visible">tspan 1 <tspan visibility="hidden"> tspan 2</tspan> more span 1</tspan> finish text</text>
96 <text x="20" y="170">Text <tspan>tspan 1 <tspan>tspan 2 </tspan>more span 1</tspan> finish text</text>
97 <text x="20" y="190">Text <tspan display="inline">tspan 1 <tspan display="none"> tspan 2</tspan> more span 1</tspan> finish text</text>
98 <text x="20" y="210">Text <tspan display="none">tspan 1 <tspan display="inline"> tspan 2</tspan> more span 1</tspan> finish text</text>
99 <text x="20" y="230">Text <tspan display="none">tspan 1 <tspan display="none"> tspan 2</tspan> more span 1</tspan> finish text</text>
100 <text x="20" y="250" display="none">Text <tspan display="inline">tspan 1 <tspan display="none"> tspan 2</tspan> more span 1</tspan> finish text</text>
101 </g>
102 </g>
104 <!-- ============================================================= -->
105 <!-- Batik sample mark -->
106 <!-- ============================================================= -->
107 <use xlink:href="../resources/batikLogo.svg#Batik_Tag_Box" />
109 </svg>