[Webkit-unassigned] [Bug 43452] New: SVG animation beginElement() does not restart a stopped animation.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 3 17:24:05 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43452

           Summary: SVG animation beginElement() does not restart a
                    stopped animation.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: griffin_m82 at yahoo.ca
                CC: zimmermann at kde.org


The scenario is:

1) An animation is started on document load using "animate" or "animateTransform". 

2) If the animation is running, "beginElement()" will restart the animation.

3) If the animation is running, "endElement()" will stop the animation.

4) If the animation is stopped, "beginElement()" will NOT restart the animation. This is the problem. 

5) As an additional problem, with "animateTransform" neither "beginElement()" nor "endElement()" seem to have any effect. This seems to be a closely related problem and so is included in this report.


This behaviour is consistent across all versions of Webkit browsers tested, including the following:

On Linux:
- Chromium 6.0.453.0 (51332) Built on Ubuntu 9.04, running on Ubuntu 10.04
- Epiphany Web Browser 2.30.2
- Midori 0.2.2 GTK+ 2.19.6, WebKitGTK+ 1.1.21

On MS windows:
- Google Chrome 5.0.375.125
- Safari 5.0.1 (7533.17.8)


This feature *does* work as expected (stopping and restarting) on the following browsers:
On Linux (64 bit Ubuntu 10.04):
- Firefox 4 beta (4.03b3pre)
- Opera 10.60 Build 6386

On MS Windows XP:
- Opera 10.60 Build 3445
- (Firefox was not tested on this platform). 


The application area for this is starting and stopping animations on demand. This would be required for any applications where the animations were used for any purpose other than page load decorations. Animations are specified as ordinary SVG XML in the web page rather than through DOM scripting to allow the easy creation of complex drawings using clip art via a drawing editor such as Inkscape. "beginElement()" and "endElement()" are the only practical means of re-starting and stopping animations in this situation. I have planned applications for these features now that all the modern browsers support animation (Firefox has just added animation in version 4). However, this is not a critical bug for me as I can tell users to either not use the new animation features, or else to use Firefox or Opera until the bug is fixed in Chrome and/or Safari. 


An SVG file with six test cases is provided. Each test case is labelled. The animations start on load and use Javascript to start or stop. Click on a green area to stop an animation. Click on a red area to re-start an animation. If you click on a running animation you will see that it will restart (some test cases are easier to see than others for this). The exception of course is the "animateMotion" test which will not stop or restart.

All tests work correctly in Opera or Firefox 4 (beta version). If you are using one of these browsers, a stopped animation will restart, and "animateMotion" behaves the same as "animate" and "animateTransform".

This report does not appear to be directly related to Bug 34301 - "Creating <animateMotion> elements via javascript do not execute". The test case provided in that report appears to run correctly when I tested it on Chromium 6.0.453.0 on Linux, whereas the test cases provided here do not run on the browsers listed above. (Bug 34301 is still marked as "new", but the test case seems to work Ok for me on Chromium 6.0.453.0 (51332)).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list