| <svg id="svg-root" width="100%" height="100%" |
| viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink"> |
| <!--======================================================================--> |
| <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, European Research Consortium for =--> |
| <!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| <!--= All Rights Reserved. =--> |
| <!--= See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| template-version="1.4" reviewer="[reviewer]" author="CM" status="created" |
| version="$Revision: 1.5 $" testname="$RCSfile: animate-elem-87-t.svg,v $"> |
| <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/animate.html#AnimateTransformElement"> |
| <p> |
| This tests that the underlying value of a scale transformation |
| is 0. Since SMIL defines a <em>by animation</em> as being equivalent |
| to an additive <em>values animation</em> where the first value is zero and |
| the second value is the <em>by</em> value, such an animation would |
| begin by post-multiplying a <code>scale(0)</code> transformation to |
| the element's underlying transform list. |
| </p> |
| </d:testDescription> |
| <d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| <p> |
| The test consists of two circles: an orange circle on the left, |
| which serves as a reference, and a blue circle on the right, |
| whose <code>transform</code> attribute is animated. Animation of |
| the circles begins at t=1s and lasts for 3s. |
| </p> |
| <p> |
| The transform animation that applies to the blue circle is of type |
| "scale", and specifies <code>by="1"</code>. Since the animation is |
| considered to be equivalent to one that specifies <code>from="0" to="1"</code>, |
| when the animation begins the circle will be scaled down to a point, |
| and then will be scaled up until it reaches its original size at |
| t=4s. |
| </p> |
| </d:operatorScript> |
| <d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| <p> |
| The test is passed if the blue circle on the right is always the same |
| size as the orange circle on the left. The test runs from t=0s until |
| t=4s. |
| </p> |
| </d:passCriteria> |
| </d:SVGTestCase> |
| <title id="test-title">$RCSfile: animate-elem-87-t.svg,v $</title> |
| <defs> |
| <font-face |
| font-family="SVGFreeSansASCII" |
| unicode-range="U+0-7F"> |
| <font-face-src> |
| <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| </font-face-src> |
| </font-face> |
| </defs> |
| <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| |
| <text x='10' y='40'>Test zero value of a scale transform animation</text> |
| |
| <g transform='translate(150,150)'> |
| <circle r='80' fill='#ccc'/> |
| <circle r='80' fill='orange'> |
| <animate attributeName='r' values='0; 80' begin='1s' dur='3s' fill='freeze'/> |
| </circle> |
| <text y='100' text-anchor='middle' font-size='12'>Reference</text> |
| </g> |
| <g transform='translate(350,150)'> |
| <circle r='80' fill='#ccc'/> |
| <circle r='80' fill='blue'> |
| <animateTransform attributeName='transform' type='scale' begin='1s' dur='3s' by='1' fill='freeze'/> |
| </circle> |
| <text y='100' text-anchor='middle' font-size='12'><animateTransform type='scale' by='1'/></text> |
| </g> |
| |
| </g> |
| <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| <text id="revision" x="10" y="340" stroke="none" |
| fill="black">$Revision: 1.5 $</text> |
| </g> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| <!-- comment out this watermark once the test is approved --> |
| <g id="draft-watermark"> |
| <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| </g> |
| </svg> |