1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
3 <!--======================================================================-->
4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, Institut National de Recherche en =-->
6 <!--= Informatique et en Automatique, Keio University). All Rights =-->
7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <!-- =====================================================================-->
11 <!-- animation-add-BE-07.svg -->
12 <!-- renamed for 1.1 suite to animate-elem-13-t.svg -->
14 <!-- Test 'from', 'by', 'to' and 'values' -->
16 <!-- Author : Jon Ferraiolo 11-Aug-2000 -->
17 <!-- Revised for 1.1 : Mathias Larsson Carlander Feb/12/2002 -->
18 <!-- Revised for SVGT/B : Mathias Larsson Carlander Jul/1/2002 -->
21 <!-- 11-Aug-2000, JF: Serial#1 created. -->
23 <!-- =====================================================================-->
24 <!--======================================================================-->
25 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
26 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
27 <!--======================================================================-->
28 <svg version=
"1.1" baseProfile=
"tiny" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
29 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
30 <OperatorScript version=
"$Revision: 1.8 $" testname=
"animate-elem-13-t.svg">
32 Test 'from', 'by', 'to' and 'values'
35 Six animations have been defined. All six animations define the same simultaneous behavior, but use different combinations of
36 attributes 'from', 'by', 'to' and 'values'. In all cases, from time
2 seconds to time
5 seconds, the rectangle should change
37 from a width of
30 to a width of
300.
40 The red text shows the attributes that were used for that particular animation.
44 <title id=
"test-title">animate-elem-
13-t
</title>
45 <desc id=
"test-desc">Test 'from', 'by', 'to' and 'values'
</desc>
46 <!--======================================================================-->
47 <!--Content of Test Case follows... =====================-->
48 <!--======================================================================-->
49 <g id=
"test-body-content" font-family=
"Arial" font-size=
"30">
50 <line x1=
"190" x2=
"190" y1=
"45" y2=
"300" stroke=
"#880000" stroke-width=
"4"/>
51 <line x1=
"460" x2=
"460" y1=
"45" y2=
"300" stroke=
"#880000" stroke-width=
"4"/>
52 <text x=
"156" y=
"32">0-
2 sec.
</text>
53 <text x=
"370" y=
"32">5+ sec.
</text>
55 <rect x=
"160" y=
"60" width=
"30" height=
"30" fill=
"#FFAA44" stroke=
"#FF00FF" stroke-width=
"4">
56 <animate id=
"an1" attributeName=
"width" from=
"30" to=
"300" begin=
"2s" dur=
"3s" fill=
"freeze"/>
58 <text x=
"20" y=
"85" fill=
"red">from to
</text>
61 <rect x=
"160" y=
"100" width=
"30" height=
"30" fill=
"#FFAA44" stroke=
"#FF00FF" stroke-width=
"4">
62 <animate attributeName=
"width" from=
"30" by=
"270" begin=
"2s" dur=
"3s" fill=
"freeze"/>
64 <text x=
"20" y=
"125" fill=
"red">from by
</text>
67 <rect x=
"160" y=
"140" width=
"30" height=
"30" fill=
"#FFAA44" stroke=
"#FF00FF" stroke-width=
"4">
68 <animate attributeName=
"width" by=
"270" begin=
"2s" dur=
"3s" fill=
"freeze"/>
70 <text x=
"20" y=
"165" fill=
"red">by
</text>
73 <rect x=
"160" y=
"180" width=
"30" height=
"30" fill=
"#FFAA44" stroke=
"#FF00FF" stroke-width=
"4">
74 <animate attributeName=
"width" to=
"300" begin=
"2s" dur=
"3s" fill=
"freeze"/>
76 <text x=
"20" y=
"205" fill=
"red">to
</text>
79 <rect x=
"160" y=
"220" width=
"30" height=
"30" fill=
"#FFAA44" stroke=
"#FF00FF" stroke-width=
"4">
80 <animate attributeName=
"width" values=
"30;300" begin=
"2s" dur=
"3s" fill=
"freeze"/>
82 <text x=
"20" y=
"245" fill=
"red">values
</text>
85 <rect x=
"160" y=
"260" width=
"30" height=
"30" fill=
"#FFAA44" stroke=
"#FF00FF" stroke-width=
"4">
86 <animate attributeName=
"width" values=
"30;120;210;300" begin=
"2s" dur=
"3s" fill=
"freeze"/>
88 <text x=
"20" y=
"285" fill=
"red">values
</text>
92 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.8 $
</text>
93 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>