Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-22-b.svg

raw
1 <svg version="1.1" baseProfile="basic" 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="Jon Ferraiolo" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: animate-elem-22-b.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 which verifies that the basic facilities of declarative
19 animation are working.
20 </p>
21 <p>
22 This test uses the following element : 'animate'
23 </p>
24 <p>
25 The test is a nine second animation with no repeats. It shows
26 a rectangle growing from small (37.5% width, 33.3% height) to
27 big (100% width, 100% height)
28 </p>
29 <p>
30 The file includes various guides that can be used to verify the
31 correctness of the animation. Outlines exist for the rectangle
32 size and location at times 0s, 3s and 9s.
33 </p>
34 </d:testDescription>
35 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
36 <p>
37 Run the test. No interaction required.
38 </p>
39 </d:operatorScript>
40 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
41 <p>The test is passed if:</p>
42 <ul>
43 <li>At the start of the animation the innermost rectangle is filled by a yellow semitransparent color</li>
44 <li>Over the course of three seconds the yellow rect smoothly animates its width and height so that at time t=3s fully fills the middle rectangle</li>
45 <li>The animation then continues in the same fashion and at time t=9s fully fills the largest rectangle with blue stroke</li>
46 </ul>
47 </d:passCriteria>
48 </d:SVGTestCase>
49 <title id="test-title">$RCSfile: animate-elem-22-b.svg,v $</title>
50 <defs>
51 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
52 <font-face-src>
53 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
54 </font-face-src>
55 </font-face>
56 </defs>
57 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
58 <!-- Guide objects to show where the animation elements belong at which time -->
59 <g font-family="Verdana" font-size="12">
60 <text x="200" y="131">Yellow rect at time 0s</text>
61 <rect x="200" y="135" width="50" height="50" fill="none" stroke="black"/>
62 <text x="141.6666" y="102.6666">Yellow rect at time 3s</text>
63 <rect x="141.6666" y="106.6666" width="166.6666" height="111.6666" fill="none" stroke="rgb(0,0,255)"/>
64 <text x="25" y="46">Yellow rect at time 9s</text>
65 <rect x="25" y="50" width="400" height="240" fill="none" stroke="rgb(0,0,255)"/>
66 </g>
67 <rect id="RectElement" x="200" y="135" width="50" height="50" fill="rgb(255,255,0)" opacity=".5">
68 <animate attributeName="x" attributeType="XML" begin="0s" dur="9s" fill="freeze" from="200" to="25"/>
69 <animate attributeName="y" attributeType="XML" begin="0s" dur="9s" fill="freeze" from="135" to="50"/>
70 <animate attributeName="width" attributeType="XML" begin="0s" dur="9s" fill="freeze" from="50" to="400"/>
71 <animate attributeName="height" attributeType="XML" begin="0s" dur="9s" fill="freeze" from="50" to="240"/>
72 </rect>
73 <!-- Set up a new user coordinate system so that the text string's
74 origin is at (0,0), allowing rotation and scale relative to
75 the new origin
76 -->
77 </g>
78 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
79 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
80 </g>
81 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
82 <!-- comment out this watermark once the test is approved -->
83 <!--<g id="draft-watermark">
84 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
85 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
86 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
87 </g>-->
88 </svg>