| 1 |
<svg version="1.1" baseProfile="tiny" 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="CC" author="CL" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: animate-elem-84-t.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 animation of color keywords that resolve to animatable RGB values. |
| 19 |
</p> |
| 20 |
</d:testDescription> |
| 21 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 22 |
<p> |
| 23 |
Run the test. No interaction required. |
| 24 |
</p> |
| 25 |
</d:operatorScript> |
| 26 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 27 |
<p> |
| 28 |
The test is passed if five |
| 29 |
black squares are shown, after two seconds, all five squares turn red and |
| 30 |
then smoothly animate the fill color to green over the next five seconds. |
| 31 |
</p> |
| 32 |
</d:passCriteria> |
| 33 |
</d:SVGTestCase> |
| 34 |
<title id="test-title">$RCSfile: animate-elem-84-t.svg,v $</title> |
| 35 |
<defs> |
| 36 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 37 |
<font-face-src> |
| 38 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 39 |
</font-face-src> |
| 40 |
</font-face> |
| 41 |
</defs> |
| 42 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 43 |
<g transform="scale(1.1) translate (50,20)"> |
| 44 |
<rect color="green" fill="#000000" height="100" width="100"> |
| 45 |
<animateColor attributeName="fill" from="#f00" to="currentColor" begin="2s" dur="5s" fill="freeze"/> |
| 46 |
</rect> |
| 47 |
<rect color="red" fill="#000000" height="100" width="100" y="150"> |
| 48 |
<animateColor attributeName="fill" from="currentColor" to="green" begin="2s" dur="5s" fill="freeze"/> |
| 49 |
</rect> |
| 50 |
<rect color="green" fill="#000000" x="120" height="100" width="100" y="75"> |
| 51 |
<animateColor attributeName="fill" from="#f00" to="green" begin="2s" dur="5s" fill="freeze"/> |
| 52 |
</rect> |
| 53 |
<g fill="#070"> |
| 54 |
<rect color="green" fill="#000000" x="240" height="100" width="100"> |
| 55 |
<animateColor attributeName="fill" from="#f00" to="inherit" begin="2s" dur="5s" fill="freeze"/> |
| 56 |
</rect> |
| 57 |
</g> |
| 58 |
<g fill="#F00"> |
| 59 |
<rect color="green" fill="#000000" x="240" height="100" width="100" y="150"> |
| 60 |
<animateColor attributeName="fill" from="inherit" to="green" begin="2s" dur="5s" fill="freeze"/> |
| 61 |
</rect> |
| 62 |
</g> |
| 63 |
<g text-anchor="middle" font-size="14"> |
| 64 |
<text x="50" y="130">currentColor</text> |
| 65 |
<text x="170" y="55">green</text> |
| 66 |
<text x="290" y="130">inherit</text> |
| 67 |
</g> |
| 68 |
</g> |
| 69 |
</g> |
| 70 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 71 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> |
| 72 |
</g> |
| 73 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 74 |
<!-- comment out this watermark once the test is approved --> |
| 75 |
<!--<g id="draft-watermark"> |
| 76 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 77 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 78 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 79 |
</g>--> |
| 80 |
</svg> |