OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics
/SVG/1.1/DTD/svg11-basic.dtd"> | |
3 | |
4 <!--======================================================================--> | |
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> | |
6 <!--= Institute of Technology, Institut National de Recherche en =--> | |
7 <!--= Informatique et en Automatique, Keio University). All Rights =--> | |
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> | |
9 <!--======================================================================--> | |
10 <!-- ===================================================================== --> | |
11 <!-- --> | |
12 <!-- text-textAnchor-BE-05.svg --> | |
13 <!-- renamed for 1.1 suite to text-align-02-f.svg --> | |
14 <!-- renamed and split for svgt/b to text-align-04-b.svg --> | |
15 <!-- --> | |
16 <!-- Test viewer basic capability to handle 'text-anchor' property. --> | |
17 <!-- --> | |
18 <!-- Author : Lofton Henderson, 05-aug-2000. --> | |
19 <!-- 1.1 revision by Vincent Hardy --> | |
20 <!-- Revised for svgt/b: Ola Andersson Jun/26/2002 --> | |
21 <!-- --> | |
22 <!-- History: --> | |
23 <!-- 05-aug-2000, LH: Serial#1 created. --> | |
24 <!-- 23-aug-2000, LH=" add test-body-content 'g'" ser#2 --> | |
25 <!-- --> | |
26 <!-- ===================================================================== --> | |
27 <!--======================================================================--> | |
28 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> | |
29 <!--= log messages, and therefore is no longer in the preceding preamble.=--> | |
30 <!--======================================================================--> | |
31 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" version="1.1"
baseProfile="basic"> | |
32 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> | |
33 <!--nav data here--> | |
34 <OperatorScript version="$Revision: 1.5 $" testname="text-align-04-b.svg"> | |
35 <Paragraph> | |
36 Test for viewer capibility to handle the basics of the 'textAnch
or' | |
37 alignment property for 'text' and related elements. | |
38 </Paragraph> | |
39 <Paragraph> | |
40 The second group from the top contains sub-tests to verify that
the | |
41 interpreter handles text-anchor when the text is comprised of ot
her | |
42 text related elements, 'tspan', 'tref', and 'textPath'. | |
43 The text-anchor property is present on the containing 'text' ele
ment | |
44 in these cases, not on the contained child elements. | |
45 </Paragraph> | |
46 <Paragraph> | |
47 The rendered picture should match the reference image, except fo
r | |
48 possible variations in the text fonts and layout (per CSS2 rules
). | |
49 </Paragraph> | |
50 </OperatorScript> | |
51 </SVGTestCase> | |
52 | |
53 <title id="test-title">text-align-04-b</title> | |
54 <desc id="test-desc">Test viewer basic capability to handle 'text-anchor' pro
perty.</desc> | |
55 <!--======================================================================--> | |
56 <!--Content of Test Case follows... =====================--> | |
57 <!--======================================================================--> | |
58 <g id="test-body-content"> | |
59 <text x="5" y="40" font-family="Arial" font-size="40" fill="black" >Test o
f 'text-anchor'</text> | |
60 <defs> | |
61 <text id="tref-internal-reference">end text tref</text> | |
62 <path id="myPath" d="M -5 260 220 260"/> | |
63 </defs> | |
64 | |
65 <text x="20" y="80" font-family="Arial" font-size="30" fill="black" >Tspan
, tref, toap</text> | |
66 <!-- Test cases --> | |
67 <line x1="220" y1="120" x2="220" y2="260" stroke="red" /> | |
68 <g font-family="Arial" font-size="30" fill="blue" > | |
69 <text x="220" y="140" text-anchor="start" >start text <tspan xml:
space="preserve" fill="red" > red tspan</tspan></text> | |
70 <text x="220" y="180" text-anchor="middle" >middle text <tspan fo
nt-weight="bold" xml:space="preserve"> bold tspan</tspan></text> | |
71 <text x="220" y="220" text-anchor="end" > | |
72 <tref xlink:href="#tref-internal-reference"/> | |
73 </text> | |
74 <text text-anchor="end" > | |
75 <textPath text-anchor="end" startOffset="100%" xlink:href="#m
yPath">Text-anchor: end text on path</textPath> | |
76 </text> | |
77 </g> | |
78 </g> | |
79 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">
$Revision: 1.5 $</text> | |
80 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke
="#000000"/> | |
81 <script> | |
82 if (window.testRunner) | |
83 window.testRunner.dumpSelectionRect(); | |
84 document.execCommand("SelectAll"); | |
85 </script> | |
86 </svg> | |
87 | |
OLD | NEW |