Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-80-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.6 $" testname="$RCSfile: animate-elem-80-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 demonstrates validates the operation of the
19 animateTransform element and validates the operation
20 of the different type attribute values.
21 </p>
22 <p>
23 There are 5 possible values for the type attribute and
24 there is one animateTransform for each type and two for
25 the translate type.
26 </p>
27 <p>
28 For each transform type, the test has a corresponding animateTransform.
29 The test uses references to show what the expected transform should be
30 at different points in the animation. For example, the top left
31 animateTransform, for type=rotate, shows circular markers which turn
32 orange at the time of corresponding transform value should be set by the
33 animateTransform.
34 The marker elements show the expected transform value on reference
35 markers in the test.
36 </p>
37 </d:testDescription>
38 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
39 <p>Run the test. No interaction required.</p>
40 </d:operatorScript>
41 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
42 <p>The test has eight sub-tests, each of which consists of a brown
43 shape being animated in some way with the animation starting two
44 seconds after the document is loaded. Gray shapes are used
45 to indicate points along the animation. The test passes if
46 the brown shape in each of the sub-tests is animated correctly,
47 according to the following descriptions:</p>
48 <ul>
49 <li>In the two "type=rotate" sub-tests, the brown line is rotated
50 clockwise about one of its end points for one complete revolution,
51 and then immediately performs the reverse animation where it is
52 rotated anti-clockwise for one complete revolution. During the
53 animation, whenever the other end point of the line coincides
54 with one of the gray filled circles, the circle briefly glows yellow.</li>
55 <li>In the "type=skewX" sub-test, the brown line continuously skewed.
56 It starts off coinciding with the middle gray silhouette, and then
57 over the course of the animation coincides with the left gray silhouette,
58 the middle one, the right one and finally the middle one again.
59 During the animation, whenever the brown line coincides with one of the gray silhouettes,
60 the silhouette briefly glows yellow.</li>
61 <li>In the "type=skewY" sub-test, the brown line continuously skewed.
62 It starts off coinciding with the middle gray silhouette, and then
63 over the course of the animation coincides with the top gray silhouette,
64 the middle one, the bottom one and finally the middle one again.
65 During the animation, whenever the brown line coincides with one of the gray silhouettes,
66 the silhouette briefly glows yellow.</li>
67 <li>In the two "type=translate" sub-tests, the brown circle is continuously
68 translated. It starts off coinciding with the left-most gray circle, and
69 over the course of the animation coincides each of the other gray circles
70 from left to right. During the animation, whenever the brown circle coincides with one of the
71 gray circles, the circle briefly glows yellow.</li>
72 <li>In the two "type=scale" sub-tests, the brown circle is continuously
73 scaled. There are four concentric gray stroked circles indicating the
74 sizes the brown circle will take during the animation, although they
75 are only all visible at the end of the animation. (Initially only the
76 largest one is visible.) The brown circle
77 starts off with a size coinciding with the largest gray circle, and
78 over the course of the animation coincides each of the other gray circles
79 from outside in. During the animation, whenever the brown circle coincides with one of the
80 gray circles, the circle briefly glows yellow.</li>
81 </ul>
82 </d:passCriteria>
83 </d:SVGTestCase>
84 <title id="test-title">$RCSfile: animate-elem-80-t.svg,v $</title>
85 <defs>
86 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
87 <font-face-src>
88 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
89 </font-face-src>
90 </font-face>
91 </defs>
92 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
93 <text text-anchor="middle" x="240" y="25" font-size="16">&lt;animateTransform&gt;</text>
94 <defs>
95 <g id="ref" stroke="rgb(192,192,192)" fill="none">
96 <circle stroke-width="2" r="40"/>
97 <line x1="-45" x2="45"/>
98 <line y1="-45" y2="45"/>
99 </g>
100 </defs>
101 <g transform="translate(0,0)" font-size="14">
102 <g transform="translate(60,90)">
103 <use xlink:href="#ref"/>
104
105 <line x1="40" x2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(0)">
106 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s;4s;6s" dur="0.2s"/>
107 </line>
108
109 <line x1="40" x2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(90)">
110 <set attributeName="stroke" to="rgb(250,200,30)" begin="2.5s;5.5s" dur="0.2s"/>
111 </line>
112
113 <line x1="40" x2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(180)">
114 <set attributeName="stroke" to="rgb(250,200,30)" begin="3s;5s" dur="0.2s"/>
115 </line>
116
117 <line x1="40" x2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(270)">
118 <set attributeName="stroke" to="rgb(250,200,30)" begin="3.5s;4.5s" dur="0.2s"/>
119 </line>
120
121 <line x2="40" stroke-width="10" stroke-linecap="round" stroke="rgb(200,80,80)">
122 <animateTransform attributeName="transform" type="rotate" values="0;360;0" begin="2s" dur="4s"/>
123 </line>
124
125 <text y="60" text-anchor="middle">type=rotate</text>
126 </g>
127
128 <g transform="translate(180,110)">
129 <line y2="-40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="skewX(0)">
130 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s;4s;6s" dur="0.2s"/>
131 </line>
132
133 <line y2="-40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="skewX(45)">
134 <set attributeName="stroke" to="rgb(250,200,30)" begin="3.333s" dur="0.2s"/>
135 </line>
136
137 <line y2="-40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="skewX(-45)">
138 <set attributeName="stroke" to="rgb(250,200,30)" begin="4.666s" dur="0.2s"/>
139 </line>
140
141 <line y2="-40" stroke-width="10" stroke-linecap="round" stroke="rgb(200,80,80)">
142 <animateTransform attributeName="transform" type="skewX" values="0;45;-45;0" begin="2s" dur="4s"/>
143 </line>
144 <text y="40" text-anchor="middle">type=skewX</text>
145 </g>
146
147 <g transform="translate(300,90)">
148 <g transform="translate(15,0)">
149 <line x2="-40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="skewY(0)">
150 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s;4s;6s" dur="0.2s"/>
151 </line>
152
153 <line x2="-40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="skewY(30)">
154 <set attributeName="stroke" to="rgb(250,200,30)" begin="3.333s" dur="0.2s"/>
155 </line>
156
157 <line x2="-40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="skewY(-30)">
158 <set attributeName="stroke" to="rgb(250,200,30)" begin="4.666s" dur="0.2s"/>
159 </line>
160
161 <line x2="-40" stroke-width="10" stroke-linecap="round" stroke="rgb(200,80,80)">
162 <animateTransform attributeName="transform" type="skewY" values="0;30;-30;0" begin="2s" dur="4s"/>
163 </line>
164 </g>
165
166 <text y="60" text-anchor="middle">type=skewY</text>
167 </g>
168
169 <g transform="translate(420,90)">
170 <circle stroke="rgb(192,192,192)" stroke-width="4" r="40" fill="none">
171 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s" dur="0.2s"/>
172 </circle>
173
174 <circle stroke="rgb(192,192,192)" stroke-width="4" r="30" fill="none">
175 <set attributeName="stroke" to="rgb(250,200,30)" begin="3s" dur="0.2s"/>
176 </circle>
177
178 <circle stroke="rgb(192,192,192)" stroke-width="4" r="20" fill="none">
179 <set attributeName="stroke" to="rgb(250,200,30)" begin="4s" dur="0.2s"/>
180 </circle>
181
182 <circle stroke="rgb(192,192,192)" stroke-width="4" r="10" fill="none">
183 <set attributeName="stroke" to="rgb(250,200,30)" begin="5s" dur="0.2s"/>
184 </circle>
185
186 <circle fill="rgb(200,80,80)" r="10" transform="scale(4)">
187 <animateTransform attributeName="transform" type="scale" values="4,4;3,3;2,2;1,1" begin="2s" dur="3s" fill="freeze"/>
188 </circle>
189 <text y="60" text-anchor="middle">type=scale</text>
190 <text y="75" text-anchor="middle">(sx and sy)</text>
191 </g>
192
193
194 <g transform="translate(20,180)">
195 <use xlink:href="#ref" x="40" y="40"/>
196
197 <line x1="80" y1="40" x2="80" y2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(0,40,40)">
198 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s;4s;6s" dur="0.2s"/>
199 </line>
200
201 <line x1="80" y1="40" x2="80" y2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(90,40,40)">
202 <set attributeName="stroke" to="rgb(250,200,30)" begin="2.5s;5.5s" dur="0.2s"/>
203 </line>
204
205 <line x1="80" y1="40" x2="80" y2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(180,40,40)">
206 <set attributeName="stroke" to="rgb(250,200,30)" begin="3s;5s" dur="0.2s"/>
207 </line>
208
209 <line x1="80" y1="40" x2="80" y2="40" stroke-width="15" stroke-linecap="round" stroke="rgb(192,192,192)" transform="rotate(270,40,40)">
210 <set attributeName="stroke" to="rgb(250,200,30)" begin="3.5s;4.5s" dur="0.2s"/>
211 </line>
212
213 <line x1="40" y1="40" x2="80" y2="40" stroke-width="10" stroke-linecap="round" stroke="rgb(200,80,80)">
214 <animateTransform attributeName="transform" type="rotate" values="0 40 40;360 40 40;0 40 40" begin="2s" dur="4s"/>
215 </line>
216
217 <text y="100" x="40" text-anchor="middle">type=rotate</text>
218 <text y="115" x="40" text-anchor="middle">(with cx/cy)</text>
219 </g>
220
221 <g transform="translate(180,220)">
222 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="-40" r="10" fill="none">
223 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s" dur="0.2s"/>
224 </circle>
225
226 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="-20" r="10" fill="none">
227 <set attributeName="stroke" to="rgb(250,200,30)" begin="3s" dur="0.2s"/>
228 </circle>
229
230 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="0" r="10" fill="none">
231 <set attributeName="stroke" to="rgb(250,200,30)" begin="4s" dur="0.2s"/>
232 </circle>
233
234 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="20" r="10" fill="none">
235 <set attributeName="stroke" to="rgb(250,200,30)" begin="5s" dur="0.2s"/>
236 </circle>
237
238 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="40" r="10" fill="none">
239 <set attributeName="stroke" to="rgb(250,200,30)" begin="6s" dur="0.2s"/>
240 </circle>
241
242 <circle fill="rgb(200,80,80)" r="6" transform="translate(-40,0)">
243 <animateTransform attributeName="transform" type="translate" values="-40;-20;0;20;40" begin="2s" dur="4s" fill="freeze"/>
244 </circle>
245 <text y="60" text-anchor="middle">type=translate</text>
246 <text y="75" text-anchor="middle">(tx only)</text>
247 </g>
248
249 <g transform="translate(300,220)">
250 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="-40" cy="30" r="10" fill="none">
251 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s" dur="0.2s"/>
252 </circle>
253
254 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="-20" cy="15" r="10" fill="none">
255 <set attributeName="stroke" to="rgb(250,200,30)" begin="3s" dur="0.2s"/>
256 </circle>
257
258 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="0" r="10" fill="none">
259 <set attributeName="stroke" to="rgb(250,200,30)" begin="4s" dur="0.2s"/>
260 </circle>
261
262 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="20" cy="-15" r="10" fill="none">
263 <set attributeName="stroke" to="rgb(250,200,30)" begin="5s" dur="0.2s"/>
264 </circle>
265
266 <circle stroke="rgb(192,192,192)" stroke-width="4" cx="40" cy="-30" r="10" fill="none">
267 <set attributeName="stroke" to="rgb(250,200,30)" begin="6s" dur="0.2s"/>
268 </circle>
269
270 <circle fill="rgb(200,80,80)" r="6" transform="translate(-40,30)">
271 <animateTransform attributeName="transform" type="translate" values="-40,30;-20,15;0,0;20,-15;40,-30" begin="2s" dur="4s" fill="freeze"/>
272 </circle>
273 <text y="60" text-anchor="middle">type=translate</text>
274 <text y="75" text-anchor="middle">(tx and ty)</text>
275 </g>
276
277 <g transform="translate(420,220)">
278 <circle stroke="rgb(192,192,192)" stroke-width="1" r="10" fill="none" transform="scale(4,4)">
279 <set attributeName="stroke" to="rgb(250,200,30)" begin="2s" dur="0.2s"/>
280 </circle>
281
282 <circle stroke="rgb(192,192,192)" stroke-width="1.3333" r="10" fill="none" transform="scale(3,3)">
283 <set attributeName="stroke" to="rgb(250,200,30)" begin="3s" dur="0.2s"/>
284 </circle>
285
286 <circle stroke="rgb(192,192,192)" stroke-width="2" r="10" fill="none" transform="scale(2,2)">
287 <set attributeName="stroke" to="rgb(250,200,30)" begin="4s" dur="0.2s"/>
288 </circle>
289
290 <circle stroke="rgb(192,192,192)" stroke-width="4" r="10" fill="none" transform="scale(1,1)">
291 <set attributeName="stroke" to="rgb(250,200,30)" begin="5s" dur="0.2s"/>
292 </circle>
293
294 <circle fill="rgb(200,80,80)" r="10" transform="scale(4,4)">
295 <animateTransform attributeName="transform" type="scale" values="4;3;2;1" begin="2s" dur="3s" fill="freeze"/>
296 </circle>
297 <text y="60" text-anchor="middle">type=scale</text>
298 <text y="75" text-anchor="middle">(sx only)</text>
299 </g>
300 </g>
301 </g>
302 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
303 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
304 </g>
305 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
306 <!-- comment out this watermark once the test is approved -->
307 <!--<g id="draft-watermark">
308 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
309 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
310 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
311 </g>-->
312 </svg>