Hi Rakesh. Raks A: > The following simple animation does not run correctly in Chrome even though > it runs as expected in Opera and Firefox 4.0 > I expect the circle to vanish after the duration of 10 second but does not > seem to happen so, in Chrome > > Another surprising thing is that if the last value of keyTimes is changed to > 0.9999 the animation works as expected > > Is this BUG already known because it is too basic to believe that it exists > in Chrome
Coincidentally, I’ve been looking into a simialr issue recently. Since you are animating a property that is not numeric, the <animate> element should be treated as if it had calcMode="discrete" on it. For discrete animations, the key times specify the start times for each of the values, and whereas with calcMode="linear" and the the others the last key time must be 1, with discrete animations usually it isn’t. Because your last key time is 1, the final value of “none” is applied only at the very end of the animation, for a duration of 0s, before the animation is frozen. The whole animation should behave as follows: 0s → 4s none 4s → 10s inline 10s → 10s none and then the animation effect is frozen at 10s. The spec doesn’t say explicitly what happens when the final key time is 1 for a discrete animation, but I would say it’s consistent and reasonable for that value to be applied if the animation is frozen. So if Chrome doesn’t leave the value as none after the 10s, I’d say it’s a bug. I wouldn’t call it a basic bug though; it’s kind of an edge case. :-) > <animate attributeName='display' begin="0" dur="10s" calcMode="discrete" > values="none;inline;none" fill="freeze" keyTimes="0;0.4;1"/> -- Cameron McCormack ≝ http://mcc.id.au/ ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

