Debian Codegraph @

test_non_regression/svg/shapes-rect-03-t.svg

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="CM" author="ED" status="accepted"
13 version="$Revision: 1.9 $" testname="$RCSfile: shapes-rect-03-t.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/shapes.html#RectElement">
15 <p>
16 Tests rx and ry clamping and aliasing.
17 </p>
18 </d:testDescription>
19 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
20 <p>
21 Run the test. No interaction required.
22 </p>
23 </d:operatorScript>
24 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 The test has passed if:
27 </p>
28 <ul>
29 <li>There is no red visible</li>
30 <li>There is no green outside the black borders of each rectangle</li>
31 </ul>
32 </d:passCriteria>
33 </d:SVGTestCase>
34 <title id="test-title">$RCSfile: shapes-rect-03-t.svg,v $</title>
35 <defs>
36 <font-face
37 font-family="SVGFreeSansASCII"
38 unicode-range="U+0-7F">
39 <font-face-src>
40 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
41 </font-face-src>
42 </font-face>
43 </defs>
44 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
45
46 <g transform="translate(0, 30)">
47 <g fill="red">
48 <g id="references">
49 <rect x="100" width="20" height="100" rx="50" ry="20"/>
50 <rect x="130" width="20" height="100" rx="10" ry="20"/>
51 <rect x="160" width="20" height="100" rx="10" ry="20"/>
52
53 <rect x="190" width="20" height="100" rx="10" ry="50"/>
54 <rect x="220" width="20" height="100" rx="10" ry="20"/>
55 <rect x="250" width="20" height="100" rx="10" ry="10"/>
56
57 <rect x="280" width="20" height="100" rx="5" ry="5"/>
58 <rect x="310" width="20" height="100" rx="0" ry="0"/>
59 <rect x="340" width="20" height="100" rx="0" ry="0"/>
60
61 <g transform="translate(45,0)">
62 <rect x="10" y="120" width="100" height="20" rx="50" ry="10"/>
63 <rect x="10" y="150" width="100" height="20" rx="15" ry="10"/>
64 <rect x="10" y="180" width="100" height="20" rx="10" ry="10"/>
65
66 <rect x="130" y="120" width="100" height="20" rx="50" ry="10"/>
67 <rect x="130" y="150" width="100" height="20" rx="20" ry="10"/>
68 <rect x="130" y="180" width="100" height="20" rx="10" ry="10"/>
69
70 <rect x="250" y="120" width="100" height="20" rx="5" ry="5"/>
71 <rect x="250" y="150" width="100" height="20" rx="0" ry="0"/>
72 <rect x="250" y="180" width="100" height="20" rx="0" ry="0"/>
73 </g>
74
75 <g transform="translate(100,100)">
76 <rect x="10" y="120" width="50" height="20" rx="25" ry="10"/>
77 <rect x="80" y="120" width="20" height="50" rx="10" ry="25"/>
78
79 <rect x="120" y="120" width="50" height="20" rx="25" ry="10"/>
80
81 <rect stroke-width="0.5" width="20" height="30" rx="10" ry="15" transform="translate(-10 -15) scale(2) translate(10 15) translate(85 52.5)"/>
82 <rect x="230" y="120" width="20" height="30" rx="10" ry="25"/>
83 </g>
84 </g>
85 </g>
86 <g id="tests" fill="lime">
87 <rect x="100" width="20" height="100" rx="50" ry="20"/>
88 <rect x="130" width="20" height="100" rx="15" ry="20"/>
89 <rect x="160" width="20" height="100" rx="10" ry="20"/>
90
91 <rect x="190" width="20" height="100" rx="80"/>
92 <rect x="220" width="20" height="100" rx="20"/>
93 <rect x="250" width="20" height="100" rx="10"/>
94
95 <rect x="280" width="20" height="100" rx="5"/>
96 <rect x="310" width="20" height="100" rx="0"/>
97 <rect x="340" width="20" height="100" rx="0" ry="0"/>
98
99 <g transform="translate(45,0)">
100 <rect x="10" y="120" width="100" height="20" rx="50" ry="20"/>
101 <rect x="10" y="150" width="100" height="20" rx="15" ry="20"/>
102 <rect x="10" y="180" width="100" height="20" rx="10" ry="20"/>
103
104 <rect x="130" y="120" width="100" height="20" ry="50"/>
105 <rect x="130" y="150" width="100" height="20" ry="20"/>
106 <rect x="130" y="180" width="100" height="20" ry="10"/>
107
108 <rect x="250" y="120" width="100" height="20" ry="5"/>
109 <rect x="250" y="150" width="100" height="20" ry="0"/>
110 <rect x="250" y="180" width="100" height="20" rx="0" ry="0"/>
111 </g>
112
113 <g transform="translate(100,100)">
114 <rect x="10" y="120" width="50" height="20" rx="50"/>
115 <rect x="80" y="120" width="20" height="50" ry="50"/>
116
117 <rect x="120" y="120" width="50" height="20" rx="200" ry="200"/>
118
119 <rect width="20" height="30" rx="50" transform="translate(-10 -15) scale(2) translate(10 15) translate(85 52.5)"/>
120 <rect x="230" y="120" width="20" height="30" ry="50"/>
121 </g>
122 </g>
123
124 <use xlink:href="#references" fill="none" stroke="black"/>
125
126 </g>
127 </g>
128 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
129 <text id="revision" x="10" y="340" stroke="none"
130 fill="black">$Revision: 1.9 $</text>
131 </g>
132 <rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
133 <!-- comment out this watermark once the test is approved
134 <g id="draft-watermark">
135 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
136 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
137 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
138 </g>-->
139 </svg>