Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-81-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.8 $" testname="$RCSfile: animate-elem-81-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 tests the operation of the animateTransform's
19 additive behavior.
20 </p>
21 <p>
22 The first two rectangles, on the top row, show the effect of the
23 additive attribute on animateTransform. The left-most
24 animateTransforms have their additive attribute set to replace,
25 so the effect of the two transform animation is as if only the
26 highest priority one applied because it replaces the underlying
27 value. The second animateTransforms (from left to right) have
28 their additive attribute set to sum, which means the transforms
29 they produce are concatenated.
30 </p>
31 <p>
32 The last two rectangles, on the top row, show the effect of the
33 accumulate attribute on animateTransform. For the left one
34 (third on the row, from left to right), the accumulate attribute
35 is set to none. There are two repeats for the
36 animateTransform. Therefore, the transform goes twice from a
37 scale(1,1) to a scale(2,2). For the right-most animateTransform,
38 the accumulate attribute is set to sum. There are two repeats
39 and the animation goes from scale(0,0) to scale(2,2) for the
40 first iteration and then from scale(2,2) to scale(4,4) (because
41 the result of the second iteration is added to the
42 scale(2,2) result of the previous, first iteration).
43 </p>
44 <p>
45 The rectangles on the bottom row show the combination of
46 additive and cumulative behavior. The left rectangle's
47 animateTransform accumulate behavior is set to none but its
48 additive behavior is set to sum. Therefore, the transform's
49 underlying value (skewX(30)) is always pre-concatenated to the
50 animateTransform's result, which goes from "skewX(30)
51 scale(1,1)" to "skewX(30) scale(2,2)" in each of its two
52 iterations. The right rectangle's animateTransform accumulate
53 behavior is set to sum and the additive behavior is also set to
54 sum. Therefore, the transform's underlying value is always
55 pre-concatenated, and repetitions of the scale animation
56 get added together. Consequently, the transform goes from "skewX(30)
57 scale(0,0)" to "skewX(30) scale(2,2)" for the first iteration
58 and then from "skewX(30) scale(2,2)" to "skewX(30)
59 scale(4,4)" for the second iteration.
60 </p>
61 </d:testDescription>
62 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
63 <p>
64 Run the test. No interaction required.
65 </p>
66 </d:operatorScript>
67 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
68 <p>The test is passed if:</p>
69 <ul>
70 <li>the scale of the upper leftmost grey rectangle is smoothly animated over the course of 5 seconds to completely fill the upper leftmost yellow rectangle</li>
71 <li>the scale and rotation of the second upper grey rectangle from the left is smoothly animated over the course of 5 seconds to fill the second upper yellow rectangle from the left</li>
72 <li>the scale of the upper third grey rectangle from the left is smoothly animated over the course of 2.5 seconds to completely fill the upper third yellow rectangle from the left, and then repeated once so that at time t=5 seconds it completely fills the same yellow rectangle</li>
73 <li>the scale of the upper rightmost grey rectangle is smoothly animated over the course of 5 seconds to completely fill the upper rightmost yellow rectangle</li>
74 <li>the scale of the lower leftmost grey rectangle is smoothly animated over the course of 2.5 seconds to completely fill the lower leftmost yellow rectangle, and then repeated once so that at time t=5 seconds it completely fills the same yellow rectangle</li>
75 <li>the scale of the lower rightmost grey rectangle is smoothly animated over the course of 5 seconds to completely fill the lower rightmost yellow rectangle</li>
76 </ul>
77 </d:passCriteria>
78 </d:SVGTestCase>
79 <title id="test-title">$RCSfile: animate-elem-81-t.svg,v $</title>
80 <defs>
81 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
82 <font-face-src>
83 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
84 </font-face-src>
85 </font-face>
86 </defs>
87 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
88 <text text-anchor="middle" x="240" y="25" font-size="16">&lt;animateTransform&gt;</text>
89 <defs>
90 <g id="ref" stroke="rgb(192,192,192)" fill="none">
91 <circle stroke-width="2" r="40"/>
92 <line x1="-45" x2="45"/>
93 <line y1="-45" y2="45"/>
94 </g>
95 </defs>
96 <g transform="translate(0,0)" font-size="14">
97 <g transform="translate(60,90)">
98 <rect x="-15" y="-15" width="30" height="30" transform="skewX(30)" stroke="gray" stroke-width="4" fill="rgb(230,230,230)">
99 <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0" to="90" dur="5s" additive="replace" fill="freeze"/>
100 <animateTransform attributeName="transform" attributeType="XML" type="scale" from="1,1" to="2,2" dur="5s" additive="replace" fill="freeze"/>
101 </rect>
102 <rect x="-15" y="-15" width="30" height="30" transform="scale(2,2)" stroke="rgb(255,180,0)" stroke-width="4" fill="none"/>
103 <text y="60" text-anchor="middle">additive=replace</text>
104 </g>
105
106 <g transform="translate(180,90)">
107 <rect x="-15" y="-15" width="30" height="30" transform="skewX(30)" stroke="gray" stroke-width="4" fill="rgb(230,230,230)">
108 <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0" to="90" dur="5s" additive="sum" fill="freeze"/>
109 <animateTransform attributeName="transform" attributeType="XML" type="scale" from="1,1" to="2,2" dur="5s" additive="sum" fill="freeze"/>
110 </rect>
111 <rect x="-15" y="-15" width="30" height="30" transform="skewX(30) rotate(90) scale(2,2)" stroke="rgb(255,180,0)" stroke-width="4" fill="none"/>
112 <text y="60" text-anchor="middle">additive=sum</text>
113 </g>
114
115 <g transform="translate(300,90)">
116 <rect x="-15" y="-15" width="30" height="30" transform="skewX(30)" stroke="gray" stroke-width="4" fill="rgb(230,230,230)">
117 <animateTransform attributeName="transform" attributeType="XML" type="scale" from="1,1" to="2,2" dur="2.5s" repeatCount="2" accumulate="none" fill="freeze" additive="replace"/>
118 </rect>
119 <rect x="-15" y="-15" width="30" height="30" transform="scale(2,2)" stroke="rgb(255,180,0)" stroke-width="4" fill="none"/>
120 <text y="60" text-anchor="middle">accumulate=none</text>
121 <text y="75" text-anchor="middle">additive=replace</text>
122 </g>
123
124 <g transform="translate(420,90)">
125 <rect x="-7.5" y="-7.5" width="15" height="15" transform="skewX(30)" stroke="gray" stroke-width="2" fill="rgb(230,230,230)">
126 <animateTransform attributeName="transform" attributeType="XML" type="scale" from="0,0" to="2,2" dur="2.5s" repeatCount="2" accumulate="sum" fill="freeze" additive="replace"/>
127 </rect>
128 <rect x="-7.5" y="-7.5" width="15" height="15" transform="scale(4,4)" stroke="rgb(255,180,0)" stroke-width="2" fill="none"/>
129 <text y="60" text-anchor="middle">accumulate=sum</text>
130 <text y="75" text-anchor="middle">additive=replace</text>
131 </g>
132
133 <g transform="translate(300,220)">
134 <rect x="-15" y="-15" width="30" height="30" transform="skewX(30)" stroke="gray" stroke-width="4" fill="rgb(230,230,230)">
135 <animateTransform attributeName="transform" attributeType="XML" type="scale" from="1,1" to="2,2" dur="2.5s" repeatCount="2" accumulate="none" fill="freeze" additive="sum"/>
136 </rect>
137 <rect x="-15" y="-15" width="30" height="30" transform="skewX(30) scale(2,2)" stroke="rgb(255,180,0)" stroke-width="4" fill="none"/>
138 <text y="60" text-anchor="middle">accumulate=none</text>
139 <text y="75" text-anchor="middle">additive=sum</text>
140 </g>
141
142 <g transform="translate(420,220)">
143 <rect x="-7.5" y="-7.5" width="15" height="15" transform="skewX(30)" stroke="gray" stroke-width="2" fill="rgb(230,230,230)">
144 <animateTransform attributeName="transform" attributeType="XML" type="scale" from="0,0" to="2,2" dur="2.5s" repeatCount="2" accumulate="sum" fill="freeze" additive="sum"/>
145 </rect>
146 <rect x="-7.5" y="-7.5" width="15" height="15" transform="skewX(30) scale(4,4)" stroke="rgb(255,180,0)" stroke-width="2" fill="none"/>
147 <text y="60" text-anchor="middle">accumulate=sum</text>
148 <text y="75" text-anchor="middle">additive=sum</text>
149 </g>
150 </g>
151 </g>
152 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
153 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
154 </g>
155 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
156 <!-- comment out this watermark once the test is approved -->
157 <!--<g id="draft-watermark">
158 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
159 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
160 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
161 </g>-->
162 </svg>