<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- =====================================================================-->
<!-- -->
<!-- animation-add-BE-07.svg -->
<!-- renamed for 1.1 suite to animate-elem-13-t.svg -->
<!-- -->
<!-- Test 'from', 'by', 'to' and 'values' -->
<!-- -->
<!-- Author : Jon Ferraiolo 11-Aug-2000 -->
<!-- Revised for 1.1 : Mathias Larsson Carlander Feb/12/2002 -->
<!-- Revised for SVGT/B : Mathias Larsson Carlander Jul/1/2002 -->
<!-- -->
<!-- History: -->
<!-- 11-Aug-2000, JF: Serial#1 created. -->
<!-- -->
<!-- =====================================================================-->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<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">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.8 $" testname="animate-elem-13-t.svg">
<Paragraph>
Test 'from', 'by', 'to' and 'values'
</Paragraph>
<Paragraph>
Six animations have been defined. All six animations define the same simultaneous behavior, but use different combinations of
attributes 'from', 'by', 'to' and 'values'. In all cases, from time 2 seconds to time 5 seconds, the rectangle should change
from a width of 30 to a width of 300.
</Paragraph>
<Paragraph>
The red text shows the attributes that were used for that particular animation.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">animate-elem-13-t</title>
<desc id="test-desc">Test 'from', 'by', 'to' and 'values'</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content" font-family="Arial" font-size="30">
<line x1="190" x2="190" y1="45" y2="300" stroke="#880000" stroke-width="4"/>
<line x1="460" x2="460" y1="45" y2="300" stroke="#880000" stroke-width="4"/>
<text x="156" y="32">0-2 sec.</text>
<text x="370" y="32">5+ sec.</text>
<g>
<rect x="160" y="60" width="30" height="30" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate id="an1" attributeName="width" from="30" to="300" begin="2s" dur="3s" fill="freeze"/>
</rect>
<text x="20" y="85" fill="red">from to</text>
</g>
<g>
<rect x="160" y="100" width="30" height="30" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate attributeName="width" from="30" by="270" begin="2s" dur="3s" fill="freeze"/>
</rect>
<text x="20" y="125" fill="red">from by</text>
</g>
<g>
<rect x="160" y="140" width="30" height="30" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate attributeName="width" by="270" begin="2s" dur="3s" fill="freeze"/>
</rect>
<text x="20" y="165" fill="red">by</text>
</g>
<g>
<rect x="160" y="180" width="30" height="30" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate attributeName="width" to="300" begin="2s" dur="3s" fill="freeze"/>
</rect>
<text x="20" y="205" fill="red">to</text>
</g>
<g>
<rect x="160" y="220" width="30" height="30" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate attributeName="width" values="30;300" begin="2s" dur="3s" fill="freeze"/>
</rect>
<text x="20" y="245" fill="red">values</text>
</g>
<g>
<rect x="160" y="260" width="30" height="30" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate attributeName="width" values="30;120;210;300" begin="2s" dur="3s" fill="freeze"/>
</rect>
<text x="20" y="285" fill="red">values</text>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<script>
// Pause the animation at t=0.
document.documentElement.pauseAnimations();
</script>
</svg>