Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-21-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="SVGWG" author="Chris lilley" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: animate-elem-21-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 Test for chained animations.
19 </p>
20 <p>
21 The assumption is that you will first click on "fade in" and
22 then click on "fade out", each exactly once. The first time you
23 select the link 'fade in', you should see a blue square appearing,
24 gradually and smoothly fading from white to blue over the
25 course of three seconds. This square is in front of and thus
26 obscures the lower left circle, but is behind the upper right
27 circle. The fill color of these circles is also animated, from white to
28 grey. The animations are triggered by the start of the corresponding
29 animation of the blue square.
30 </p>
31 <p>
32 With the second click on "fade in", however, the behavior might
33 be different. In the case of having a first click on "fade in",
34 waiting three seconds, and then immediately perform a first click
35 on "fade out", waiting three seconds, and then immediately perform
36 a second click on "fade in", you should see the following. After
37 the first click on "fade in", the blue square goes from white to blue.
38 After the first click on "fade out", the blue square goes
39 from blue to white. After the second click on "fade in",
40 however, the blue square goes from white to blue, and then
41 goes back from blue to white. This is because of the
42 hyperlinking rules as they relate to resolved start times in the
43 SMIL Animation specification.
44 </p>
45 </d:testDescription>
46 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
47 <p>
48 Click "fade in", wait 3 seconds. Click "fade out", wait 3 seconds. Click "fade in" again, wait 6 seconds.
49 </p>
50 </d:operatorScript>
51 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
52 <p>The test is passed if:</p>
53 <ul>
54 <li>The first time "fade in" is clicked, a blue rectangle should smoothly fade from white to blue, and two circles should fade from white to gray, all over the course of three seconds</li>
55 <li>When "fade out" is clicked, the blue rectangle should smoothly fade from blue to white, and the two circles should fade from gray to white, all over the course of three seconds.</li>
56 <li>When "fade in" is clicked the second time, it should behave as the first time "fade in" was clicked but immediately followed by the "fade out" behaviour described above, so that the shapes all fade in over the course of three seconds, and then out again over the course of three seconds.</li>
57 <li>The rendered picture matches the reference image, (except
58 for possible variations in the labeling text (per CSS2 rules))
59 after activating the link on the fade-in button the first time
60 and waiting three seconds for the animation to compete. The picture
61 should remain looking the same way indefinitely, until another
62 link is activated.</li>
63 </ul>
64 </d:passCriteria>
65 </d:SVGTestCase>
66 <title id="test-title">$RCSfile: animate-elem-21-t.svg,v $</title>
67 <defs>
68 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
69 <font-face-src>
70 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
71 </font-face-src>
72 </font-face>
73 </defs>
74 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
75 <circle stroke="white" stroke-width="30" fill="none" cx="100" cy="200" r="60">
76 <animate id="fadein" attributeName="stroke" attributeType="auto" from="white" to="#666" begin="indefinite" dur="3s" fill="freeze"/>
77 <animate id="fadeout" attributeName="stroke" attributeType="auto" from="#666" to="white" begin="indefinite" dur="3s" fill="freeze"/>
78 </circle>
79 <rect id="pink" x="20" y="20" width="180" height="180" fill="#fff">
80 <animate id="fadein2" attributeName="fill" attributeType="auto" from="#fff" to="blue" begin="fadein.begin" dur="3s" fill="freeze"/>
81 <animate id="fadeout2" attributeName="fill" attributeType="auto" from="blue" to="#fff" begin="fadeout.begin" dur="3s" fill="freeze"/>
82 </rect>
83 <circle stroke="white" stroke-width="20" fill="none" cx="200" cy="110" r="80">
84 <animate id="fadein3" attributeName="stroke" attributeType="auto" from="white" to="#666" begin="fadein.begin" dur="3s" fill="freeze"/>
85 <animate id="fadeout3" attributeName="stroke" attributeType="auto" from="#666" to="white" begin="fadeout.begin" dur="3s" fill="freeze"/>
86 </circle>
87 <!-- ok so this is testing dynamic compositing as well -->
88 <g id="buttons">
89 <a xlink:href="#fadein">
90 <rect x="320" y="0" width="160" height="180" fill="green"/>
91 <text fill="white" font-size="30" font-weight="bold" x="330" y="90">Fade in</text>
92 </a>
93 <a xlink:href="#fadeout">
94 <rect x="320" y="180" width="160" height="180" fill="maroon"/>
95 <text fill="white" font-size="30" font-weight="bold" x="330" y="280">Fade out</text>
96 </a>
97 </g>
98 </g>
99 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
100 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
101 </g>
102 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
103 <!-- comment out this watermark once the test is approved -->
104 <!--<g id="draft-watermark">
105 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
106 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
107 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
108 </g>-->
109 </svg>