Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-83-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.7 $" testname="$RCSfile: animate-elem-83-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
19 on the &lt;path&gt; element's d attribute.
20 </p>
21 <p>
22 The following descriptions references to the tests by number. The first test
23 is the one showing on the top left. The last, sixth test is the one showing
24 at the bottom right. Test numbers are alocated from left to right and from
25 top to bottom.
26
27 For each test, there are reference outline markers which show the expected
28 animated shape at different times in the animation. At the time of the expected
29 shape, the outline of the expected shape is drawn with a thick stroke for 0.2s
30 so the test user can visually check that the shapes are matching at the
31 expected times.
32 </p>
33 <p>
34 The first test validates a simple from-to animation on a path's d attribute
35 made of M, C and Z commands where both the from and to attributes are specified.
36 The attributes are compatible with the path element's d attribute.
37 </p>
38 <p>
39 The second test validates a simple to-animation on a path's d attribute
40 made of M, C and Z commands where the to attribute is specified.
41 The attribute is compatible with the path element's d attribute.
42 </p>
43 <p>
44 The third test validates a simple values-animation on a path's d attribute
45 made of M, C and Z commands where the values attribute is specified and
46 specifies three seperate values.
47 The attribute is compatible with the path element's d attribute.
48 </p>
49 <p>
50 The fourth, fifth and sixth tests validate that interpolation between compatible
51 path values (i.e., path values which normalize to the compatible values) is
52 supported.
53 </p>
54 <p>
55 The fourth tests interpolation between a path value containing H, V and L commands
56 (in the from value) and a path value containing compatible h, v and l commands
57 (in the to value).
58 </p>
59 <p>
60 The fifth tests interpolation between a path value containing C and S commands
61 (in the from value) and a path value containing compatible c and s commands
62 (in the to value).
63 </p>
64 <p>
65 The sixth tests interpolation between a path value containing Q, T and A commands
66 (in the from value) and a path value containing compatible q, t and a commands
67 (in the to value).
68 </p>
69 </d:testDescription>
70 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
71 <p>Run the test. No interaction required.</p>
72 </d:operatorScript>
73 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
74 <p>The test consists of six sub-tests. In each sub-test, the light gray filled
75 path must continously morph its shape, starting one second after the document
76 load and continuing for three seconds. In all sub-tests except for #3, there are
77 two orange reference shape outlines between which the gray path must morph.
78 In sub-test #3, there are three reference shapes. The test passes if each of the
79 gray shapes morphs appropriately according to the following descriptions:</p>
80 <ol>
81 <li>The gray shape must morph from the diamond to the flower-like shape.</li>
82 <li>The gray shape must morph just like sub-test #1, from the diamond to the flower-like shape.</li>
83 <li>The gray shape must morph from the diamond, to the flower-like shape, and then to the large, rounded diamond shape.</li>
84 <li>The gray shape must morph from the lower-right pointing kite shape to the upper-left pointing kite shape.</li>
85 <li>The gray shape must morph from the tall shape to the wide shape.</li>
86 <li>The gray shape must morph from the wide "D" shape to the narrow "D" shape.</li>
87 </ol>
88 <p>In addition, during the animations whenever the gray shape has the same shape as
89 a reference shape, the stroke of the reference shape must be shown thicker momentarily.</p>
90 </d:passCriteria>
91 </d:SVGTestCase>
92 <title id="test-title">$RCSfile: animate-elem-83-t.svg,v $</title>
93 <defs>
94 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
95 <font-face-src>
96 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
97 </font-face-src>
98 </font-face>
99 </defs>
100 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
101 <text text-anchor="middle" x="240" y="25" font-size="16">&lt;animate&gt; on &lt;path&gt;'s d attribute</text>
102
103 <defs>
104 <g id="ref" stroke="rgb(192,192,192)" fill="none">
105 <circle stroke-width="2" r="40"/>
106 <line x1="-45" x2="45"/>
107 <line y1="-45" y2="45"/>
108 </g>
109 </defs>
110
111 <g transform="translate(0,0)" font-size="12">
112 <g id="test_1" transform="translate(120,90)">
113 <path d="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" stroke="none" stroke-width="4" fill="rgb(230,230,230)">
114 <animate attributeName="d" from="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" to="M 0 0 C -50 -15 -15 -50 0 0 C 15 -50 50 -15 0 0 C 50 15 15 50 0 0 C -15 50 -50 15 0 0 Z" dur="3s" fill="freeze" begin="1s"/>
115 </path>
116
117 <path d="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
118 <set attributeName="stroke-width" to="4" begin="1s" dur="0.2s"/>
119 </path>
120
121 <path d="M 0 0 C -50 -15 -15 -50 0 0 C 15 -50 50 -15 0 0 C 50 15 15 50 0 0 C -15 50 -50 15 0 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
122 <set attributeName="stroke-width" to="4" begin="4s" dur="0.2s"/>
123 </path>
124
125 <text y="60" text-anchor="middle">#1: from-to animation</text>
126 </g>
127
128 <g id="test_2" transform="translate(240,90)">
129 <path d="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" stroke="none" stroke-width="4" fill="rgb(230,230,230)">
130 <animate attributeName="d" to="M 0 0 C -50 -15 -15 -50 0 0 C 15 -50 50 -15 0 0 C 50 15 15 50 0 0 C -15 50 -50 15 0 0 Z" dur="3s" fill="freeze" begin="1s"/>
131 </path>
132
133 <path d="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
134 <set attributeName="stroke-width" to="4" begin="1s" dur="0.2s"/>
135 </path>
136
137 <path d="M 0 0 C -50 -15 -15 -50 0 0 C 15 -50 50 -15 0 0 C 50 15 15 50 0 0 C -15 50 -50 15 0 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
138 <set attributeName="stroke-width" to="4" begin="4s" dur="0.2s"/>
139 </path>
140
141 <text y="60" text-anchor="middle">#2: to animation</text>
142 </g>
143
144 <g id="test_3" transform="translate(360,90)">
145 <path d="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" stroke="none" stroke-width="4" fill="rgb(230,230,230)">
146 <animate attributeName="d" values="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z; M 0 0 C -50 -15 -15 -50 0 0 C 15 -50 50 -15 0 0 C 50 15 15 50 0 0 C -15 50 -50 15 0 0 Z; M -45 0 C -15 0 0 -15 0 -45 C 0 -15 15 0 45 0 C 15 0 0 15 0 45 C 0 15 -15 0 -45 0 Z" dur="3s" fill="freeze" begin="1s"/>
147 </path>
148
149 <path d="M -15 0 C -15 0 0 -15 0 -15 C 0 -15 15 0 15 0 C 15 0 0 15 0 15 C 0 15 -15 0 -15 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
150 <set attributeName="stroke-width" to="4" begin="1s" dur="0.2s"/>
151 </path>
152
153 <path d="M 0 0 C -50 -15 -15 -50 0 0 C 15 -50 50 -15 0 0 C 50 15 15 50 0 0 C -15 50 -50 15 0 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
154 <set attributeName="stroke-width" to="4" begin="2.5s" dur="0.2s"/>
155 </path>
156
157 <path d="M -45 0 C -15 0 0 -15 0 -45 C 0 -15 15 0 45 0 C 15 0 0 15 0 45 C 0 15 -15 0 -45 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
158 <set attributeName="stroke-width" to="4" begin="4s" dur="0.2s"/>
159 </path>
160
161 <text y="60" text-anchor="middle">#3: values animation</text>
162 </g>
163
164 <g id="test_4" transform="translate(120,200)">
165 <path d="M -30 -30 L 30 0 V 30 H 0 Z" stroke="none" stroke-width="4" fill="rgb(230,230,230)">
166 <animate attributeName="d" from="M -30 -30 L 30 0 V 30 H 0 Z" to="M 30 30 l -60 -30 v -30 h 30 Z" dur="3s" fill="freeze" begin="1s"/>
167 </path>
168
169 <path d="M -30 -30 L 30 0 V 30 H 0 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
170 <set attributeName="stroke-width" to="4" begin="1s" dur="0.2s"/>
171 </path>
172
173 <path d="M 30 30 l -60 -30 v -30 h 30 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
174 <set attributeName="stroke-width" to="4" begin="4s" dur="0.2s"/>
175 </path>
176
177 <text y="60" text-anchor="middle">#4: from-to animation</text>
178 <text y="75" text-anchor="middle">compatible H/h, V/v,</text>
179 <text y="90" text-anchor="middle">L/l segments</text>
180 </g>
181
182 <g id="test_5" transform="translate(240,200)">
183 <path d="M -20 -20 C 20 -20 20 -20 20 20 S 20 40 -20 20 Z" stroke="none" stroke-width="4" fill="rgb(230,230,230)">
184 <animate attributeName="d" from="M -20 -20 C 20 -20 20 -20 20 20 S 20 40 -20 20 Z" to="M -20 -20 c 0 40 0 40 40 40 s 40 0 0 -40 z" dur="3s" fill="freeze" begin="1s"/>
185 </path>
186
187 <path d="M -20 -20 C 20 -20 20 -20 20 20 S 20 40 -20 20 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
188 <set attributeName="stroke-width" to="4" begin="1s" dur="0.2s"/>
189 </path>
190
191 <path d="M -20 -20 c 0 40 0 40 40 40 s 40 0 0 -40 z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
192 <set attributeName="stroke-width" to="4" begin="4s" dur="0.2s"/>
193 </path>
194
195 <text y="60" text-anchor="middle">#5: from-to animation</text>
196 <text y="75" text-anchor="middle">compatible C/c</text>
197 <text y="90" text-anchor="middle">s/S segments</text>
198 </g>
199
200 <g id="test_6" transform="translate(360,200)">
201 <path d="M -30 -30 Q 30 -30 30 0 T -30 30 Z" stroke="none" stroke-width="4" fill="rgb(230,230,230)">
202 <animate attributeName="d" from="M -30 -30 Q 30 -30 30 0 T -30 30 Z" to="M -30 -30 q 30 0 30 30 t -30 30 z" dur="3s" fill="freeze" begin="1s"/>
203 </path>
204
205 <path d="M -30 -30 Q 30 -30 30 0 T -30 30 Z" stroke="rgb(255,180,0)" stroke-width="1" fill="none">
206 <set attributeName="stroke-width" to="4" begin="1s" dur="0.2s"/>
207 </path>
208
209 <path d="M -30 -30 q 30 0 30 30 t -30 30 " stroke="rgb(255,180,0)" stroke-width="1" fill="none">
210 <set attributeName="stroke-width" to="4" begin="4s" dur="0.2s"/>
211 </path>
212
213 <text y="60" text-anchor="middle">#6: from-to animation</text>
214 <text y="75" text-anchor="middle">compatible Q/q, T/t</text>
215 <text y="90" text-anchor="middle">segments</text>
216 </g>
217 </g>
218 </g>
219 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
220 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
221 </g>
222 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
223 <!-- comment out this watermark once the test is approved -->
224 <!--<g id="draft-watermark">
225 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
226 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
227 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
228 </g>-->
229 </svg>