Debian Codegraph @

test_non_regression/svg/struct-group-03-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="CN" author="VH" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: struct-group-03-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#Groups">
17 <p>
18 This test validates that properties are inherited (or not, depending on
19 their defintion), from a group to its children.
20 </p>
21 </d:testDescription>
22 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
23 <p>
24 [[
25 Describe how to use the here. The instructions should specify any
26 steps requied to run the test or any manual operation that need
27 to be performed to run the test.
28 ]]
29 </p>
30 </d:operatorScript>
31 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 The two rows displayed in this test should be identical. In the top row,
34 each property is set to the value 'inherit'. In the bottom row, which is
35 the reference, each property is set to the value that should be inherited
36 in the top row.
37 </p>
38 </d:passCriteria>
39 </d:SVGTestCase>
40 <title id="test-title">$RCSfile: struct-group-03-t.svg,v $</title>
41 <defs>
42 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
43 <font-face-src>
44 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
45 </font-face-src>
46 </font-face>
47 </defs>
48 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
49 <g id="grid" transform="translate(70, 150) rotate(-90)" fill="none" stroke="black">
50 <defs>
51 <rect id="propertyCell" x="-5" y="-14" width="110" height="22"/>
52 <rect id="sampleCell" x="-5" y="-14" width="50" height="22"/>
53 </defs>
54
55 <use xlink:href="#propertyCell"/>
56 <use xlink:href="#propertyCell" y="22"/>
57 <use xlink:href="#propertyCell" y="44"/>
58 <use xlink:href="#propertyCell" y="66"/>
59 <use xlink:href="#propertyCell" y="88"/>
60 <use xlink:href="#propertyCell" y="110"/>
61 <use xlink:href="#propertyCell" y="132"/>
62 <use xlink:href="#propertyCell" y="154"/>
63 <use xlink:href="#propertyCell" y="176"/>
64 <use xlink:href="#propertyCell" y="198"/>
65 <use xlink:href="#propertyCell" y="220"/>
66 <use xlink:href="#propertyCell" y="242"/>
67 <use xlink:href="#propertyCell" y="264"/>
68 <use xlink:href="#propertyCell" y="286"/>
69 <use xlink:href="#propertyCell" y="308"/>
70 <use xlink:href="#propertyCell" y="330"/>
71 <use xlink:href="#propertyCell" y="352"/>
72
73 <g transform="translate(-50, 0)">
74 <use xlink:href="#sampleCell"/>
75 <use xlink:href="#sampleCell" y="22"/>
76 <use xlink:href="#sampleCell" y="44"/>
77 <use xlink:href="#sampleCell" y="66"/>
78 <use xlink:href="#sampleCell" y="88"/>
79 <use xlink:href="#sampleCell" y="110"/>
80 <use xlink:href="#sampleCell" y="132"/>
81 <use xlink:href="#sampleCell" y="154"/>
82 <use xlink:href="#sampleCell" y="176"/>
83 <use xlink:href="#sampleCell" y="198"/>
84 <use xlink:href="#sampleCell" y="220"/>
85 <use xlink:href="#sampleCell" y="242"/>
86 <use xlink:href="#sampleCell" y="264"/>
87 <use xlink:href="#sampleCell" y="286"/>
88 <use xlink:href="#sampleCell" y="308"/>
89 <use xlink:href="#sampleCell" y="330"/>
90 <use xlink:href="#sampleCell" y="352"/>
91 </g>
92
93 <g transform="translate(-100, 0)">
94 <use xlink:href="#sampleCell"/>
95 <use xlink:href="#sampleCell" y="22"/>
96 <use xlink:href="#sampleCell" y="44"/>
97 <use xlink:href="#sampleCell" y="66"/>
98 <use xlink:href="#sampleCell" y="88"/>
99 <use xlink:href="#sampleCell" y="110"/>
100 <use xlink:href="#sampleCell" y="132"/>
101 <use xlink:href="#sampleCell" y="154"/>
102 <use xlink:href="#sampleCell" y="176"/>
103 <use xlink:href="#sampleCell" y="198"/>
104 <use xlink:href="#sampleCell" y="220"/>
105 <use xlink:href="#sampleCell" y="242"/>
106 <use xlink:href="#sampleCell" y="264"/>
107 <use xlink:href="#sampleCell" y="286"/>
108 <use xlink:href="#sampleCell" y="308"/>
109 <use xlink:href="#sampleCell" y="330"/>
110 <use xlink:href="#sampleCell" y="352"/>
111 </g>
112 </g>
113 <g id="properties" transform="translate(70, 150) rotate(-90)">
114 <text>color</text>
115 <text y="22">display</text>
116 <text y="44">fill</text>
117 <text y="66">fill-rule</text>
118 <text y="88">stroke</text>
119 <text y="110">stroke-dasharray</text>
120 <text y="132">stroke-dashoffset</text>
121 <text y="154">stroke-linecap</text>
122 <text y="176">stroke-linejoin</text>
123 <text y="198">stroke-miterlimit</text>
124 <text y="220">stroke-width</text>
125 <text y="242">visibility</text>
126 <text y="264">font-family</text>
127 <text y="286">font-size</text>
128 <text y="308">font-style</text>
129 <text y="330">font-weight</text>
130 <text y="352">text-anchor</text>
131 </g>
132
133 <g id="inheritGroup" transform="translate(56, 155)">
134
135 <g color="#0F0">
136 <rect x="3" y="10" width="16" height="32" fill="currentColor"/>
137 </g>
138
139 <g display="none" transform="translate(22, 0)">
140 <rect x="3" y="10" width="16" height="32" display="inherit"/>
141 </g>
142
143 <g fill="#0F0" transform="translate(44, 0)">
144 <rect x="3" y="10" width="16" height="32" fill="inherit"/>
145 </g>
146
147 <g fill-rule="evenodd" transform="translate(66, 0)">
148 <polygon points="10.5,0 21,21 0,7 21,7 0,21" fill-rule="inherit" fill="#0F0" transform="translate(3, 15) scale(0.7)"/>
149 </g>
150
151 <g stroke="#0F0" transform="translate(88, 0)">
152 <rect x="3" y="10" width="16" height="32" stroke="inherit" fill="none"/>
153 </g>
154
155 <g stroke-dasharray="2,2,5,5" transform="translate(110, 0)">
156 <line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dasharray="inherit" stroke-width="2"/>
157 </g>
158
159 <g stroke-dashoffset="4" transform="translate(132, 0)">
160 <line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dashoffset="inherit" stroke-dasharray="2,2,5,5" stroke-width="2"/>
161 </g>
162
163 <g stroke-linecap="round" transform="translate(154, 0)">
164 <line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-linecap="inherit" stroke-width="10"/>
165 </g>
166
167 <g stroke-linejoin="round" transform="translate(176, 0)">
168 <polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-linejoin="inherit" stroke-width="5" fill="none"/>
169 </g>
170
171 <g stroke-miterlimit="1" transform="translate(198, 0)">
172 <polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-miterlimit="inherit" stroke-width="5" fill="none"/>
173 </g>
174
175 <g stroke-width="5" transform="translate(220, 0)">
176 <line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-width="inherit"/>
177 </g>
178
179 <g visibility="hidden" transform="translate(242, 0)">
180 <line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" visibility="inherit"/>
181 </g>
182
183 <g font-family="serif" transform="translate(264, 0)">
184 <text x="11" y="30" font-size="20" text-anchor="middle" font-family="inherit">A</text>
185 </g>
186
187 <g font-size="10" transform="translate(286, 0)">
188 <text x="11" y="30" font-size="inherit" text-anchor="middle" font-family="serif">A</text>
189 </g>
190
191 <g font-style="italic" transform="translate(308, 0)">
192 <text x="11" y="30" font-style="inherit" text-anchor="middle" font-size="20" font-family="serif">A</text>
193 </g>
194
195 <g font-weight="bold" transform="translate(330, 0)">
196 <text x="11" y="30" font-weight="inherit" text-anchor="middle" font-family="serif" font-size="20">A</text>
197 </g>
198
199 <g text-anchor="middle" transform="translate(352, 0)">
200 <text x="11" y="30" text-anchor="inherit" font-family="serif" font-size="20">A</text>
201 </g>
202 </g>
203
204 <g id="referenceGroup" transform="translate(56, 205)">
205
206 <g>
207 <rect x="3" y="10" width="16" height="32" fill="#0F0"/>
208 </g>
209
210 <g transform="translate(22, 0)">
211 <rect x="3" y="10" width="16" height="32" display="none"/>
212 </g>
213
214 <g transform="translate(44, 0)">
215 <rect x="3" y="10" width="16" height="32" fill="#0F0"/>
216 </g>
217
218 <g transform="translate(66, 0)">
219 <polygon points="10.5,0 21,21 0,7 21,7 0,21" fill-rule="evenodd" fill="#0F0" transform="translate(3, 15) scale(0.7)"/>
220 </g>
221
222 <g transform="translate(88, 0)">
223 <rect x="3" y="10" width="16" height="32" stroke="#0F0" fill="none"/>
224 </g>
225
226 <g stroke-dasharray="2,2,5,5" transform="translate(110, 0)">
227 <line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dasharray="inherit" stroke-width="2"/>
228 </g>
229
230 <g transform="translate(132, 0)">
231 <line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dashoffset="4" stroke-dasharray="2,2,5,5" stroke-width="2"/>
232 </g>
233
234 <g transform="translate(154, 0)">
235 <line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-linecap="round" stroke-width="10"/>
236 </g>
237
238 <g transform="translate(176, 0)">
239 <polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-linejoin="round" stroke-width="5" fill="none"/>
240 </g>
241
242 <g transform="translate(198, 0)">
243 <polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-miterlimit="1" stroke-width="5" fill="none"/>
244 </g>
245
246 <g transform="translate(220, 0)">
247 <line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-width="5"/>
248 </g>
249
250 <g transform="translate(242, 0)">
251 <line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" visibility="hidden"/>
252 </g>
253
254 <g transform="translate(264, 0)">
255 <text x="11" y="30" font-size="20" text-anchor="middle" font-family="serif">A</text>
256 </g>
257
258 <g transform="translate(286, 0)">
259 <text x="11" y="30" font-size="10" text-anchor="middle" font-family="serif">A</text>
260 </g>
261
262 <g transform="translate(308, 0)">
263 <text x="11" y="30" font-style="italic" text-anchor="middle" font-size="20" font-family="serif">A</text>
264 </g>
265
266 <g transform="translate(330, 0)">
267 <text x="11" y="30" font-weight="bold" text-anchor="middle" font-family="serif" font-size="20">A</text>
268 </g>
269
270 <g transform="translate(352, 0)">
271 <text x="11" y="30" text-anchor="middle" font-family="serif" font-size="20">A</text>
272 </g>
273 </g>
274 </g>
275 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
276 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
277 </g>
278 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
279 <!-- comment out this watermark once the test is approved -->
280 <!--<g id="draft-watermark">
281 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
282 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
283 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
284 </g>-->
285 </svg>