Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-41-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, CM" author="VH" status="accepted"
15 version="$Revision: 1.8 $" testname="$RCSfile: animate-elem-41-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/animate.html#Animation">
17 <p>
18 This test validates the operation of the animate element on the various graphics
19 properties. This test is very similar to animate-elem-78-t which uses the set element
20 instead of the animate element to modify graphics properties.
21 </p>
22 <p>
23 For each of the graphics properties, there are three tests. One animates the graphics
24 property directly on an element (such as a rect or a line) which uses the
25 property. The other two tests apply the animation on a container element (g and
26 a), and validate that the animated property is inherited by elements which
27 are child of the container.
28 </p>
29 </d:testDescription>
30 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
31 <p>Run the test. No interaction required.</p>
32 </d:operatorScript>
33 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
34 <p>
35 There are 11 graphics properties that are animated, and for each of these,
36 they are animated in one of three different ways (the three columns). The
37 three animations in each row must be the same.
38 </p>
39 <p>
40 For each animation test, the element on which the animation is applied is also
41 translated by an animation so that the various states of the animation can
42 be checked more easily:
43 </p>
44 <ul>
45 <li>For those tests that have two light gray silhouettes
46 (fill-rule, stroke-linecap, stroke-linejoin, stroke-miterlimit and stroke-dashoffset),
47 the animated element's shape must be the same as the left silouhette at the
48 start of the animation and the same as the right silhouette at the end of
49 the animation.</li>
50 <li>For the continous paint animations (fill, stroke and color),
51 three references shapes show the color that the animated element must be
52 at the start, middle and end of the animation.</li>
53 <li>For the stroke-width test, the two dark gray reference shapes show the
54 width of the short, animated horizontal line must be at the start and the end
55 of the animation.</li>
56 <li>For the display and visibility tests, the single light gray silhouette
57 shows the position the animated element must be at at the start of the animation.
58 At the end of the animation, these animated elements must not be visible.</li>
59 </ul>
60 <p>
61 The following animations must show continuous changes: fill, stroke,
62 stroke-width, stroke-dashoffset and color.
63 </p>
64 <p>
65 The following animations must show discrete animation changes: fill-rule, stroke-linecap,
66 stroke-linejoin, stroke-miterlimit, display and visibility. The point at which
67 the change takes place must be half way through the animation, except for the
68 stroke-miter animation, which must change a quarter of the way through.
69 (Note that visually, stroke-miterlimit shows a sharp transition even though its value
70 is animated continuously, but that is because the miter is cut off when
71 the animated miter limit reaches the test sharp angle's miter value.)
72 </p>
73 <p>The test passes if all of the above criteria are met.</p>
74 </d:passCriteria>
75 </d:SVGTestCase>
76 <title id="test-title">$RCSfile: animate-elem-41-t.svg,v $</title>
77 <defs>
78 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
79 <font-face-src>
80 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
81 </font-face-src>
82 </font-face>
83 </defs>
84 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
85 <text text-anchor="middle" x="240" y="25" font-size="20">graphics</text>
86 <g transform="translate(80, 75)">
87 <g transform="translate(30,10)" text-anchor="end" font-size="12">
88 <text>fill</text>
89 <text y="20">fill-rule</text>
90 <text y="40">stroke</text>
91 <text y="60">stroke-width</text>
92 <text y="80">stroke-linecap</text>
93 <text y="100">stroke-linejoin</text>
94 <text y="120">stroke-miterlimit</text>
95 <text y="140">stroke-dashoffset</text>
96 <text y="160">display</text>
97 <text y="180">visibility</text>
98 <text y="200">color</text>
99 </g>
100
101 <g id="type" transform="translate(90, -20)" text-anchor="middle" font-size="14">
102 <text x="20" y="3">element</text>
103 <text x="130" y="3">&lt;g&gt;</text>
104 <text x="235" y="3">&lt;a&gt;</text>
105 </g>
106
107 <g transform="translate(80,0)" fill="rgb(204,0,102)">
108 <g id="setZero">
109 <defs>
110 <g id="animateZeroRef">
111 <rect x="10" y="-6" width="8" height="4" fill="rgb(204,0,102)"/>
112 <rect x="10" y="-6" width="8" height="4" fill="rgb(230,82,51)" transform="translate(15,0)"/>
113 <rect x="10" y="-6" width="8" height="4" fill="rgb(255,165,0)" transform="translate(30,0)"/>
114 </g>
115 </defs>
116 <use xlink:href="#animateZeroRef"/>
117 <use xlink:href="#animateZeroRef" x="110"/>
118 <use xlink:href="#animateZeroRef" x="220"/>
119
120 <rect x="10" width="8" height="8" fill="rgb(204,0,102)">
121 <animate attributeName="fill" to="rgb(255,165,0)" dur="3s" fill="freeze"/>
122 <animate attributeName="x" to="40" dur="3s" fill="freeze"/>
123 </rect>
124
125 <g transform="translate(110, 0)">
126 <rect x="10" width="8" height="8"/>
127 <animate attributeName="fill" to="rgb(255,165,0)" dur="3s" fill="freeze"/>
128 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
129 </g>
130
131 <a xlink:href="" transform="translate(220, 0)">
132 <rect x="10" width="8" height="8"/>
133 <animate attributeName="fill" to="rgb(255,165,0)" dur="3s" fill="freeze"/>
134 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
135 </a>
136
137 </g>
138
139 <g id="setOne" transform="translate(5,15)" stroke="rgb(204,0,102)">
140 <defs>
141 <g id="setOneRef" fill="#ccc" stroke="none">
142 <polyline stroke-width="1" points="20,10,0,10,15,20,10,2,5,20,20,10"/>
143 <polyline fill-rule="evenodd" stroke-width="1" points="20,10,0,10,15,20,10,2,5,20,20,10" transform="translate(30,0)"/>
144 </g>
145 </defs>
146 <use xlink:href="#setOneRef"/>
147 <use xlink:href="#setOneRef" x="110"/>
148 <use xlink:href="#setOneRef" x="220"/>
149
150 <polyline points="20,10,0,10,15,20,10,2,5,20,20,10">
151 <animate attributeName="fill-rule" from="nonzero" to="evenodd" dur="3s" fill="freeze"/>
152 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
153 </polyline>
154
155 <g transform="translate(110, 0)">
156 <animate attributeName="fill-rule" from="nonzero" to="evenodd" dur="3s" fill="freeze"/>
157 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
158 <polyline points="20,10,0,10,15,20,10,2,5,20,20,10"/>
159 </g>
160
161 <a xlink:href="" transform="translate(220, 0)">
162 <animate attributeName="fill-rule" from="nonzero" to="evenodd" dur="3s" fill="freeze"/>
163 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
164 <polyline points="20,10,0,10,15,20,10,2,5,20,20,10"/>
165 </a>
166
167 </g>
168
169 <g id="setTwo" transform="translate(0,45)" fill="none">
170 <defs>
171 <g id="setTwoRef" fill="none" stroke-width="4">
172 <rect x="10" width="8" height="8" stroke="rgb(204,0,102)"/>
173 <rect x="10" width="8" height="8" transform="translate(15,0)" stroke="rgb(230,82,51)"/>
174 <rect x="10" width="8" height="8" transform="translate(30,0)" stroke="rgb(255,165,0)"/>
175
176 </g>
177 </defs>
178 <use xlink:href="#setTwoRef"/>
179 <use xlink:href="#setTwoRef" x="110"/>
180 <use xlink:href="#setTwoRef" x="220"/>
181
182 <rect x="10" width="8" height="8" stroke-width="3">
183 <animate attributeName="stroke" from="rgb(204,0,102)" to="rgb(255,165,0)" dur="3s"/>
184 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
185 </rect>
186
187 <g transform="translate(110, 0)">
188 <animate attributeName="stroke" from="rgb(204,0,102)" to="rgb(255,165,0)" dur="3s"/>
189 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
190 <rect x="10" width="8" height="8" stroke-width="3"/>
191 </g>
192
193 <a xlink:href="" transform="translate(220, 0)">
194 <animate attributeName="stroke" from="rgb(204,0,102)" to="rgb(255,165,0)" dur="3s"/>
195 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
196 <rect x="10" width="8" height="8" stroke-width="3"/>
197 </a>
198 </g>
199
200 <g id="setThree" transform="translate(0,60)">
201 <defs>
202 <g id="setThreeRef">
203 <line x1="10" y1="3" x2="20" y2="3" stroke-width="1" stroke="gray"/>
204 <line x1="10" y1="3" x2="20" y2="3" stroke-width="5" stroke="gray" transform="translate(30,0)"/>
205 </g>
206 </defs>
207
208 <use xlink:href="#setThreeRef"/>
209 <use xlink:href="#setThreeRef" x="110"/>
210 <use xlink:href="#setThreeRef" x="220"/>
211
212 <line x1="10" y1="8" x2="20" y2="8" stroke="gray">
213 <animate attributeName="stroke-width" from="1" to="5" dur="3s" fill="freeze"/>
214 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
215 </line>
216
217 <g transform="translate(110, 0)">
218 <animate attributeName="stroke-width" from="1" to="5" dur="3s" fill="freeze"/>
219 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
220 <line x1="10" y1="8" x2="20" y2="8" stroke="gray"/>
221 </g>
222
223 <a xlink:href="" transform="translate(220, 0)">
224 <animate attributeName="stroke-width" from="1" to="5" dur="3s" fill="freeze"/>
225 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
226 <line x1="10" y1="8" x2="20" y2="8" stroke="gray"/>
227 </a>
228 </g>
229
230 <g id="setFour" transform="translate(0,80)" stroke-width="4" stroke="rgb(204,0,102)">
231 <defs>
232 <g id="setFourRef" stroke-width="12">
233 <line x1="10" y1="8" x2="12" y2="8" stroke="#ccc"/>
234 <line x1="10" y1="8" x2="12" y2="8" stroke-linecap="round" stroke="#ccc" transform="translate(30,0)"/>
235 </g>
236 </defs>
237 <use xlink:href="#setFourRef"/>
238 <use xlink:href="#setFourRef" x="110"/>
239 <use xlink:href="#setFourRef" x="220"/>
240
241 <line x1="10" y1="8" x2="12" y2="8" stroke-width="12">
242 <animate attributeName="stroke-linecap" from="butt" to="round" dur="3s" fill="freeze"/>
243 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
244 </line>
245
246 <g transform="translate(110, 0)">
247 <animate attributeName="stroke-linecap" from="butt" to="round" dur="3s" fill="freeze"/>
248 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
249 <line x1="10" y1="8" x2="12" y2="8" stroke-width="12"/>
250 </g>
251
252 <a xlink:href="" transform="translate(220, 0)">
253 <animate attributeName="stroke-linecap" from="butt" to="round" dur="3s" fill="freeze"/>
254 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
255 <line x1="10" y1="8" x2="12" y2="8" stroke-width="12"/>
256 </a>
257 </g>
258
259 <g id="setFive" transform="translate(5,100)" fill="none" stroke-miterlimit="10" stroke-width="3" stroke="rgb(204,0,102)">
260 <defs>
261 <g id="setFiveRef">
262 <polyline stroke="#ccc" points="5,2,20,5,5,8"/>
263 <polyline stroke="#ccc" points="5,2,20,5,5,8" stroke-linejoin="bevel" transform="translate(30,0)"/>
264 </g>
265 </defs>
266 <use xlink:href="#setFiveRef"/>
267 <use xlink:href="#setFiveRef" x="110"/>
268 <use xlink:href="#setFiveRef" x="220"/>
269
270 <polyline points="5,2,20,5,5,8">
271 <animate attributeName="stroke-linejoin" from="miter" to="bevel" dur="3s" fill="freeze"/>
272 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
273 </polyline>
274
275 <g transform="translate(110, 0)">
276 <animate attributeName="stroke-linejoin" from="miter" to="bevel" dur="3s" fill="freeze"/>
277 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
278 <polyline points="5,2,20,5,5,8"/>
279 </g>
280
281 <a xlink:href="" transform="translate(220, 0)">
282 <animate attributeName="stroke-linejoin" from="miter" to="bevel" dur="3s" fill="freeze"/>
283 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
284 <polyline points="5,2,20,5,5,8"/>
285 </a>
286 </g>
287
288 <g id="setSix" transform="translate(5,120)" stroke-miterlimit="1" fill="none" stroke-width="3" stroke="rgb(204,0,102)">
289 <defs>
290 <g id="setSixRef">
291 <polyline points="5,0,20,5,5,10" stroke="#ccc"/>
292 <polyline points="5,0,20,5,5,10" stroke="#ccc" stroke-miterlimit="10" transform="translate(30,0)"/>
293 </g>
294 </defs>
295 <use xlink:href="#setSixRef"/>
296 <use xlink:href="#setSixRef" x="110"/>
297 <use xlink:href="#setSixRef" x="220"/>
298
299 <polyline points="5,0,20,5,5,10">
300 <animate attributeName="stroke-miterlimit" from="1" to="10" dur="3s" fill="freeze"/>
301 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
302 </polyline>
303
304 <g transform="translate(110, 0)">
305 <animate attributeName="stroke-miterlimit" from="1" to="10" dur="3s" fill="freeze"/>
306 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
307 <polyline points="5,0,20,5,5,10"/>
308 </g>
309
310 <a xlink:href="" transform="translate(220, 0)">
311 <animate attributeName="stroke-miterlimit" from="1" to="10" dur="3s" fill="freeze"/>
312 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
313 <polyline points="5,0,20,5,5,10"/>
314 </a>
315
316 </g>
317
318 <g id="setSeven" transform="translate(-5,145)" stroke-dasharray="3,4,5" stroke-width="3" stroke="rgb(204,0,102)">
319 <defs>
320 <g id="setSevenRef">
321 <line x1="0" y1="0" x2="25" y2="0" stroke="#ccc"/>
322 <line x1="0" y1="0" x2="25" y2="0" stroke="#ccc" stroke-dashoffset="5.5" transform="translate(40,0)"/>
323 </g>
324 </defs>
325 <use xlink:href="#setSevenRef"/>
326 <use xlink:href="#setSevenRef" x="110"/>
327 <use xlink:href="#setSevenRef" x="220"/>
328
329 <line x1="0" y1="0" x2="25" y2="0">
330 <animate attributeName="stroke-dashoffset" from="0" to="5.5" dur="3s" fill="freeze"/>
331 <animateTransform type="translate" attributeName="transform" from="0" to="40" dur="3s" fill="freeze" additive="sum"/>
332 </line>
333
334 <g transform="translate(110, 0)">
335 <animate attributeName="stroke-dashoffset" from="0" to="5.5" dur="3s" fill="freeze"/>
336 <animateTransform type="translate" attributeName="transform" from="0" to="40" dur="3s" fill="freeze" additive="sum"/>
337 <line x1="0" y1="0" x2="25" y2="0"/>
338 </g>
339
340 <a xlink:href="" transform="translate(220, 0)">
341 <animate attributeName="stroke-dashoffset" from="0" to="5.5" dur="3s" fill="freeze"/>
342 <animateTransform type="translate" attributeName="transform" from="0" to="40" dur="3s" fill="freeze" additive="sum"/>
343 <line x1="0" y1="0" x2="25" y2="0"/>
344 </a>
345 </g>
346
347 <g id="setEight" transform="translate(0,160)">
348 <defs>
349 <g id="setEightRef">
350 <rect x="10" width="8" height="8" fill="#ccc"/>
351 <rect x="10" width="8" height="8" fill="#ccc" transform="translate(30,0)" display="none"/>
352 </g>
353 </defs>
354 <use xlink:href="#setEightRef"/>
355 <use xlink:href="#setEightRef" x="110"/>
356 <use xlink:href="#setEightRef" x="220"/>
357 <rect x="10" width="8" height="8">
358 <animate attributeName="display" from="inline" to="none" dur="3s" fill="freeze"/>
359 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
360 </rect>
361
362 <g transform="translate(110, 0)">
363 <animate attributeName="display" from="inline" to="none" dur="3s" fill="freeze"/>
364 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
365 <rect x="10" width="8" height="8"/>
366 </g>
367
368 <a xlink:href="" transform="translate(220, 0)">
369 <animate attributeName="display" from="inline" to="none" dur="3s" fill="freeze"/>
370 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
371 <rect x="10" width="8" height="8"/>
372 </a>
373 </g>
374
375 <g id="setNine" transform="translate(0,180)">
376 <defs>
377 <g id="setNineRef">
378 <rect x="10" width="8" height="8" fill="#ccc"/>
379 </g>
380 </defs>
381 <use xlink:href="#setNineRef"/>
382 <use xlink:href="#setNineRef" x="110"/>
383 <use xlink:href="#setNineRef" x="220"/>
384
385 <rect x="10" width="8" height="8">
386 <animate attributeName="visibility" from="visible" to="hidden" dur="3s" fill="freeze"/>
387 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
388 </rect>
389
390 <g transform="translate(110, 0)">
391 <animate attributeName="visibility" from="visible" to="hidden" dur="3s" fill="freeze"/>
392 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
393 <rect x="10" width="8" height="8"/>
394 </g>
395
396 <a xlink:href="" transform="translate(220, 0)">
397 <animate attributeName="visibility" from="visible" to="hidden" dur="3s" fill="freeze"/>
398 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
399 <rect x="10" width="8" height="8"/>
400 </a>
401 </g>
402
403 <g id="setTen" color="rgb(204,0,102)" transform="translate(0,200)">
404 <defs>
405 <g id="animateTenRef">
406 <rect x="10" y="-6" width="8" height="4" fill="rgb(204,0,102)"/>
407 <rect x="10" y="-6" width="8" height="4" fill="rgb(230,82,51)" transform="translate(15,0)"/>
408 <rect x="10" y="-6" width="8" height="4" fill="rgb(255,165,0)" transform="translate(30,0)"/>
409 </g>
410 </defs>
411 <use xlink:href="#animateTenRef"/>
412 <use xlink:href="#animateTenRef" x="110"/>
413 <use xlink:href="#animateTenRef" x="220"/>
414
415 <rect x="10" width="8" height="8" fill="currentColor">
416 <animate attributeName="color" from="rgb(204,0,102)" to="rgb(255,165,0)" dur="3s" fill="freeze"/>
417 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
418 </rect>
419
420 <g transform="translate(110, 0)" fill="currentColor">
421 <animate attributeName="color" from="rgb(204,0,102)" to="rgb(255,165,0)" dur="3s" fill="freeze"/>
422 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
423 <rect x="10" width="8" height="8"/>
424 </g>
425
426 <a xlink:href="" transform="translate(220, 0)" fill="currentColor">
427 <animate attributeName="color" from="rgb(204,0,102)" to="rgb(255,165,0)" dur="3s" fill="freeze"/>
428 <animateTransform type="translate" attributeName="transform" from="0" to="30" dur="3s" fill="freeze" additive="sum"/>
429 <rect x="10" width="8" height="8"/>
430 </a>
431 </g>
432 </g>
433 </g>
434 </g>
435 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
436 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
437 </g>
438 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
439 <!-- comment out this watermark once the test is approved -->
440 <!--<g id="draft-watermark">
441 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
442 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
443 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
444 </g>-->
445 </svg>