Bug 11290 - 'animateTransform' and 'set' don't work, but they are referenced as 'working'
Summary: 'animateTransform' and 'set' don't work, but they are referenced as 'working'
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Mac (Intel) OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 41761
  Show dependency treegraph
 
Reported: 2006-10-14 02:48 PDT by Matthieu Chaton
Modified: 2011-01-23 15:13 PST (History)
4 users (show)

See Also:


Attachments
path animation test (1.81 KB, image/svg+xml)
2011-01-13 02:37 PST, MH
no flags Details
animateTransform test (4.09 KB, image/svg+xml)
2011-01-13 02:37 PST, MH
no flags Details
<set> animation test (1.59 KB, image/svg+xml)
2011-01-13 02:39 PST, MH
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Chaton 2006-10-14 02:48:39 PDT
I have to make an animation in SVG. According to the svg status, the only elements that work are set, animateTransform and animateColor. But webkit doesn't render the animation when using these elements.

The code I have used, and which works with ASV 3 and 6 is :

<set begin="abtn1.click" id="set_anim0a" attributeName="x" to="0" xlink:href="#aimga" /> 
<animateTransform attributeName="transform"  xlink:href="#aimga" type="scale" values="1,1;0,1;-1,1" begin="abtn1.click" dur="'.$dur.'" repeatCount="1" additive="sum" calcMode="linear" fill="freeze" accumulate="none" restart="always"/>
<set begin="abtn1.click+'.($dur/2).'s" id="set_anim1" attributeName="xlink:href" to="" xlink:href="#aimga" /> 

where $dur is the duration (in PHP).

I have alse tested this site, wich is a reference for the SVG :
http://pilat.free.fr/tutorial/animate.svg
Go to the exemples and code sections, and see that <set> and <animateTransform> are not working with webkit, but work with ASV.
Comment 1 Eric Seidel (no email) 2007-01-31 05:22:00 PST
Well, they certainly work better now. :)  It would be much more helpful to file individual bugs about specific aspects of <animateTransform> and <set> which don't work correctly.
Comment 2 Nikolas Zimmermann 2010-01-13 19:16:09 PST
Matthieu, are you still interessted in this bug? If yes, I'd highly recommend a reduced testcase, as the supplied one is quite complex. I don't even see it react on any clicks (Syntax etc..)
Comment 3 MH 2011-01-13 02:35:54 PST
It seems, it WORKS now :) See attachments...

Very good job, many thanks!!
Comment 4 MH 2011-01-13 02:37:08 PST
Created attachment 78790 [details]
path animation test
Comment 5 MH 2011-01-13 02:37:59 PST
Created attachment 78791 [details]
animateTransform test
Comment 6 MH 2011-01-13 02:39:20 PST
Created attachment 78792 [details]
<set> animation test