blob: d6e36db5db00483817064307e48612f24f912788 [file] [log] [blame]
<?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-targElt-BE-03.svg -->
<!-- renamed for 1.1 suite to animate-elem-27-t -->
<!-- -->
<!-- Test animation options for specifying the target element. -->
<!-- -->
<!-- Author : Jon Ferraiolo 10-Aug-2000 -->
<!-- -->
<!-- History: -->
<!-- 10-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.7 $" testname="animate-elem-27-t.svg">
<Paragraph>
Test animation options for specifying the target element.
</Paragraph>
<Paragraph>
The leftmost rectangle verifies the use of the 'xlink:href'
attribute to indicate the target element to be animated.
The rightmost rectangle verifies animating the parent of
the 'animate' element (in this case, a 'rect' element)
(i.e., the implicit parent of the 'animate' element).
</Paragraph>
<Paragraph>
At time 0, two rectangles filled with red and stroked with
blue appear, each with width=100 and height=200. Starting at
time 3 seconds and ending at time 6 seconds, the height of
the leftmost rectangle decreases from 200 to 50. Starting at
time 6 seconds and ending at time 9 seconds, the rightmost
rectangle decreases from 200 to 50. Annotations on the picture
show the correct positions at particular times.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">animate-elem-27-t</title>
<desc id="test-desc">Test animation options for specifying the target element.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text font-family="Arial" font-size="16" text-anchor="middle" x="225" y="40">Test animation options for specifying the target element.</text>
<g xml:space="preserve" font-family="Arial" font-size="14" text-anchor="end" stroke-width="3" >
<text x="80" y="244">0 to 3 sec. </text>
<line x1="80" y1="240" x2="200" y2="240" fill="none" stroke="green" />
<text x="80" y="124">at 6 sec. </text>
<line x1="80" y1="120" x2="200" y2="120" fill="none" stroke="green" />
<rect id="rect1" x="100" y="80" width="100" height="160" fill="red" stroke="blue" stroke-width="4" />
<animate xlink:href="#rect1" attributeName="height" attributeType="XML" from="160" to="40" begin="3s" dur="3s" fill="freeze"/>
<text x="305" y="244">0 to 6 sec. </text>
<line x1="305" y1="240" x2="425" y2="240" fill="none" stroke="green" />
<text x="305" y="124">at 9 sec. </text>
<line x1="305" y1="120" x2="425" y2="120" fill="none" stroke="green" />
<rect id="rect2" x="325" y="80" width="100" height="160" fill="red" stroke="blue" stroke-width="4" >
<animate attributeName="height" attributeType="XML" from="160" to="40" begin="6s" dur="3s" fill="freeze"/>
</rect>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>