W3C home > Mailing lists > Public > www-svg@w3.org > December 2005

Re: SVG12: animation with indirect values

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 23 Dec 2005 09:02:42 +0100
To: Robin Berjon <robin.berjon@expway.fr>
Cc: www-svg@w3.org
Message-ID: <mcbnq1t2p9145veloh2t83cvebi1uikmqc@hive.bjoern.hoehrmann.de>

* Robin Berjon wrote:
>You wrote:
> > http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/animate.html is
> > unclear about animation that involves indirect values such as the
> > currentColor keyword for color properties.
>
>The specification has been clarified to say that it is the computed  
>value of a property that is animated, which covers the currentColor  
>case since its computed value is that of the current color.

There is new text

  Animation is based on the computed value of properties. Thus, keywords
  such as 'inherit' which yield a computed value may be inherited
  because the computed value is a scalar or list of scalars. For
  example, fill="inherit" may be animated, because the computed value of
  fill will be a color.

This seems wrong ("may be inherited"?) and misses my point. For the
example I gave

  <rect color="green" fill="#000000" height="100" width="100">
    <animateColor attributeName="fill"
                  from="#000000" to="currentColor"
                  begin="0s" dur="3s" fill="freeze" />
  </rect>

an implementation would need to determine some numeric value for the
currentColor keyword and the specification does not say which value
that might be. If this is allowed, the specification would need to say
for which element the computed value of the color property would be
considered, when that would happen, and what happens if the computed
value changes while the animation is running. So this does not address
my concern.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 23 December 2005 08:02:29 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:32 GMT