Debian Codegraph @

test_non_regression/svg/coords-coord-01-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" 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="DJ" author="CN" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: coords-coord-01-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/coords.html#InitialCoordinateSystem">
17 <p>
18 Tests the default initial coordinate system used by renderer.
19 </p>
20 <p>Should be 0,0 if not specified. This is illustrated by comparing blue boxes that are
21 missing a coordinate or all coordinates with yellow boxes that have the
22 correct coordinates specified.
23 </p>
24 </d:testDescription>
25 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 Run the test. No interaction required.
28 </p>
29 </d:operatorScript>
30 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
31 <p>
32 The test is passed if there are three blue boxes,
33 with small yellow boxes rendered on top of them. These boxes should be
34 placed along the origin, and x and y axis.
35 </p>
36 </d:passCriteria>
37 </d:SVGTestCase>
38 <title id="test-title">$RCSfile: coords-coord-01-t.svg,v $</title>
39 <defs>
40 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
41 <font-face-src>
42 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
43 </font-face-src>
44 </font-face>
45 </defs>
46 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
47
48 <!-- Content of Test Case follows. -->
49
50 <g stroke="black" stroke-width="5">
51
52 <line x1="0" y1="0" x2="150" y2="0"/>
53
54 <line x1="0" y1="0" x2="0" y2="150"/>
55 </g>
56
57 <g fill="blue">
58 <rect width="15" height="15"/>
59
60 <rect x="150" width="15" height="15"/>
61
62 <rect y="150" width="15" height="15"/>
63 </g>
64
65 <g fill="yellow">
66 <rect x="0" y="0" width="10" height="10"/>
67
68 <rect x="150" y="0" width="10" height="10"/>
69
70 <rect x="0" y="150" width="10" height="10"/>
71 </g>
72 </g>
73 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
74 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
75 </g>
76 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
77 <!-- comment out this watermark once the test is approved -->
78 <!--<g id="draft-watermark">
79 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
80 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
81 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
82 </g>-->
83 </svg>