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-alignment-BE-10.svg --> | |
13 <!-- renamed for 1.1 suite to text-align-02-b.svg --> | |
14 <!-- renamed and split for svgt/b to text-align-01-b-b.svg --> | |
15 <!-- --> | |
16 <!-- Test the 'baseline-shift' property (horizontal). --> | |
17 <!-- --> | |
18 <!-- Author : Jon Ferraiolo 06-Aug-2000 --> | |
19 <!-- 1.1 revision by Vincent Hardy --> | |
20 <!-- Revised for svgt/b: Ola Andersson Jun/26/2002 --> | |
21 <!-- --> | |
22 <!-- History: --> | |
23 <!-- 06-Aug-2000, JF: Serial#1 created. --> | |
24 <!-- --> | |
25 <!-- ===================================================================== --> | |
26 <!--======================================================================--> | |
27 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> | |
28 <!--= log messages, and therefore is no longer in the preceding preamble.=--> | |
29 <!--======================================================================--> | |
30 <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"> | |
31 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> | |
32 <!--nav data here--> | |
33 <OperatorScript version="$Revision: 1.5 $" testname="text-align-02-b.svg"> | |
34 <Paragraph> | |
35 Test the 'baseline-shift' property (horizontal). | |
36 </Paragraph> | |
37 <Paragraph> | |
38 This three lines test property 'baseline-shift'. | |
39 The first line tests 'baseline-shift:7' (i.e., a length for 'bas
eline-shift'). | |
40 The red text should shift upward by 7 pixels. | |
41 The second line tests 'baseline-shift:-70%' (i.e., a percentage
for 'baseline-shift'). | |
42 The red text should shift downward by 70% of the 'font-size'. | |
43 The third line tests the three keywords 'sub', 'super' and 'norm
al'. | |
44 You should see a subscript, superscript and return to normal. | |
45 </Paragraph> | |
46 </OperatorScript> | |
47 </SVGTestCase> | |
48 | |
49 <title id="test-title">text-align-02-b</title> | |
50 <desc id="test-desc">Test the 'baseline-shift' property (horizontal).</desc> | |
51 <!--======================================================================--> | |
52 <!--Content of Test Case follows... =====================--> | |
53 <!--======================================================================--> | |
54 <g id="test-body-content"> | |
55 <text font-family="Arial" font-size="34" x="5" y="40">Test 'baseline-shif
t' (horizontal)</text> | |
56 <g id="baseline-shift" font-family="Arial" font-size="30" transform="t
ranslate(15,120)"> | |
57 <text y="0">Normal<tspan baseline-shift="7" fill="red" >baseline-
shift:7</tspan>text</text> | |
58 <text y="70">Normal<tspan baseline-shift="-70%" fill="red" >basel
ine-shift:-70%</tspan>text</text> | |
59 <text y="140">Normal<tspan baseline-shift="sub" fill="red" >sub</
tspan><tspan baseline-shift="super" fill="green" >super</tspan><tspan baseline-s
hift="baseline" fill="blue" >te</tspan>xt</text> | |
60 </g> | |
61 </g> | |
62 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">
$Revision: 1.5 $</text> | |
63 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke
="#000000"/> | |
64 <script> | |
65 if (window.testRunner) | |
66 window.testRunner.dumpSelectionRect(); | |
67 document.execCommand("SelectAll"); | |
68 </script> | |
69 </svg> | |
70 | |
OLD | NEW |