About animate-elem-227-t.svg

Dear all,


In the test case animate-elem-227-t for SVG 1.2 [1]


The following is stated:

- the circle at the top right appears at 2.5 seconds (discrete animation),
with a green fill

- the circle at the bottom right (with a green fill) disappears at 2.5
seconds (discrete animation)


The animation (for the second test) is:

<circle r="50" cx="390" cy="220" fill="yellow">

  <animateColor attributeName="fill" dur="5s" to="none" fill="freeze"/>



The test is checking the behavior of a discrete animation without a "from"



According to the SVG TR [2]:

Except for any SVG-specific rules explicitly mentioned in this specification,
the normative definition for this attribute is found in the Simple animation
functions specified by from, to and by
section of the SMIL 2.1 Animation Modules ([SMIL21
<http://www.w3.org/TR/SVGMobile12/refs.html#ref-SMIL21> ], section 3.5.4).


According to SMIL REC [3]: 

Since a to animation has only 1 value, a discrete to animation will simply
set the to
<http://www.w3.org/TR/2005/REC-SMIL2-20051213/animation.html#adef-to>  value
for the simple duration.


I couldn't find anywhere in the SVG specification that the discrete animation
with a "to" and no "from" should behave differently than what is specified in
the SMIL specification. However the tetcase assumes that a different rule is
used (implicit definition of the from attribute).


Note that the test animate-elem-226-t.svg actually uses the same assumption.
href will stay constant (to the orange image) if the player follows the SMIL


Can somebody clarify this point ? (either pointing to the specification or to
a corrected testset ?)






[1] http://dev.w3.org/SVG/profiles/1.2T/test/svg/animate-elem-227-t.svg

[2] http://www.w3.org/TR/SVGMobile12/animate.html#ToAttribute





Julien Reichel, PhD

Technology Architect


SpinetiX SA

Rue des Terreaux 17

1003 Lausanne, Switzerland


T  +41 21 341 15 50

F  +41 21 311 19 56





Received on Monday, 8 February 2010 11:35:21 UTC