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 <svg version=
"1.1" baseProfile=
"tiny" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360"
4 xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
5 <!--======================================================================-->
6 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
7 <!--= Institute of Technology, Institut National de Recherche en =-->
8 <!--= Informatique et en Automatique, Keio University). All Rights =-->
9 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <!-- NOTE: CVS will automatically update the -->
12 <!-- "$RCSfile: animate-elem-84-t.svg,v $" and "$Revision: 1.4 $" -->
13 <!-- fields in the file. -->
14 <!-- There is no need to update this information. -->
15 <!-- =====================================================================-->
16 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/" reviewer=
"CC"
17 owner=
"CL" desc=
"test animation of keywords that resolve to rgb colors " status=
"accepted"
18 version=
"$Revision: 1.4 $" testname=
"$RCSfile: animate-elem-84-t.svg,v $">
20 <Paragraph> Test animation of color keywords that resolve to animatable RGB values.Five
21 black squares are shown. After two seconds, all five squares should turn red and
22 then smoothly animate the fill color to green over the next five seconds.
26 <title id=
"test-title">$RCSfile: animate-elem-
84-t.svg,v $
</title>
27 <!--======================================================================-->
28 <!--Content of Test Case follows... =====================-->
29 <!--======================================================================-->
30 <g id=
"test-body-content">
31 <g transform=
"scale(1.1) translate (50,20)">
32 <rect color=
"green" fill=
"#000000" height=
"100" width=
"100">
33 <animate attributeName=
"fill" from=
"#f00" to=
"currentColor" begin=
"2s" dur=
"5s"
36 <rect color=
"red" fill=
"#000000" height=
"100" width=
"100" y=
"150">
37 <animate attributeName=
"fill" from=
"currentColor" to=
"green" begin=
"2s" dur=
"5s"
40 <rect color=
"green" fill=
"#000000" x=
"120" height=
"100" width=
"100" y=
"75">
41 <animate attributeName=
"fill" from=
"#f00" to=
"green" begin=
"2s" dur=
"5s" fill=
"freeze"
45 <rect color=
"green" fill=
"#000000" x=
"240" height=
"100" width=
"100">
46 <animate attributeName=
"fill" from=
"#f00" to=
"inherit" begin=
"2s" dur=
"5s"
51 <rect color=
"green" fill=
"#000000" x=
"240" height=
"100" width=
"100" y=
"150">
52 <animate attributeName=
"fill" from=
"inherit" to=
"green" begin=
"2s" dur=
"5s"
56 <g text-anchor=
"middle" font-size=
"14">
57 <text x=
"50" y=
"130">currentColor
</text>
58 <text x=
"170" y=
"55">green
</text>
59 <text x=
"290" y=
"130">inherit
</text>
63 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.4 $
</text>
64 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000"/>