Debian Codegraph @

test_non_regression/fail/text/text-align-05-b.svg

raw
1 <svg version="1.1" baseProfile="basic" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="SVGWG" author="Jon Ferraiolo" status="accepted"
15 version="$Revision: 1.9 $" testname="$RCSfile: text-align-05-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#AlignmentProperties">
17 <p>
18 Test 'text-anchor' property (vertical).
19 </p>
20 <p>
21 This tests the three values for property 'text-anchor': start, middle and end.
22 </p>
23 </d:testDescription>
24 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 Run the test. No interaction required.
27 </p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 The test is passed if three vertical lines of text are displayed with
32 each line containing a single black dot.
33 </p>
34 <lu>
35 <li>
36 The first vertical line of text containing the black dot at the top of
37 the text.
38 </li>
39 <li>
40 The second vertical line of text containing the black dot in the
41 middle of the text.
42 </li>
43 <li>
44 The third vertical line of text containing the black dot at the bottom
45 of the text.
46 </li>
47 </lu>
48 </d:passCriteria>
49 </d:SVGTestCase>
50 <title id="test-title">$RCSfile: text-align-05-b.svg,v $</title>
51 <defs>
52 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
53 <font-face-src>
54 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
55 </font-face-src>
56 </font-face>
57 </defs>
58 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
59 <text font-size="40" x="5" y="40">Test 'text-anchor' (vertical)</text>
60 <g writing-mode="tb" glyph-orientation-vertical="0">
61 <g id="text-anchor" font-family="Arial" font-size="30" transform="translate(160,150)">
62 <g transform="translate(0,0)">
63 <circle r="3"/>
64 <text text-anchor="start" fill="fuchsia">start</text>
65 </g>
66 <g transform="translate(50,0)">
67 <circle r="3"/>
68 <text text-anchor="middle" fill="green">middle</text>
69 </g>
70 <g transform="translate(100,0)">
71 <circle r="3"/>
72 <text text-anchor="end" fill="blue">end</text>
73 </g>
74 </g>
75 </g>
76 </g>
77 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
78 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
79 </g>
80 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
81 <!-- comment out this watermark once the test is approved -->
82 <!--<g id="draft-watermark">
83 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
84 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
85 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
86 </g>-->
87 </svg>