Bug 136524 - animate element restart="never" does not work
Summary: animate element restart="never" does not work
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-04 02:10 PDT by Balazs Torma
Modified: 2022-09-03 10:56 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Torma 2014-09-04 02:10:09 PDT
Even when setting restart="never" for an animation, the animation restarts.

See fiddle http://jsfiddle.net/hLtzfo81/

This works on firefox.
Comment 1 Balazs Torma 2014-09-04 02:10:45 PDT
Tested on google chrome:

Google Chrome	37.0.2062.94 (Official Build 290621) 
OS	Linux 
Blink	537.36 (@180557)
JavaScript	V8 3.27.34.14
Flash	14.0.0.177
User Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36
Command Line	/usr/bin/google-chrome-stable --flag-switches-begin --ignore-gpu-blacklist --flag-switches-end
Executable Path	/opt/google/chrome/google-chrome
Profile Path	/home/torel/.config/google-chrome/Default
Comment 2 Philip Rogers 2014-09-04 11:07:58 PDT
I don't think this is a bug, as the repeat is just applying to the current animation.

Chrome no longer uses webkit so we should file a separate bug against Chrome (at http://crbug.com/new). Chrome and Safari have the same behavior in this case though.
Comment 3 Dirk Schulze 2014-09-04 11:10:45 PDT
(In reply to comment #2)
> I don't think this is a bug, as the repeat is just applying to the current animation.
> 
> Chrome no longer uses webkit so we should file a separate bug against Chrome (at http://crbug.com/new). Chrome and Safari have the same behavior in this case though.

It is a bug: http://www.w3.org/TR/SVG/animate.html#RestartAttribute

The animation should just happen once in the live time of the document.
Comment 4 Philip Rogers 2014-09-04 11:17:38 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > I don't think this is a bug, as the repeat is just applying to the current animation.
> > 
> > Chrome no longer uses webkit so we should file a separate bug against Chrome (at http://crbug.com/new). Chrome and Safari have the same behavior in this case though.
> 
> It is a bug: http://www.w3.org/TR/SVG/animate.html#RestartAttribute
> 
> The animation should just happen once in the live time of the document.

I stand corrected. I've filed crbug.com/410918 to track this issue in blink as well.
Comment 5 Ahmad Saleem 2022-09-03 10:56:03 PDT
I am able to reproduce this in Safari 15.6.1 on macOS 12.5.1 where the circle animate whenever you hover mouse over it rather than once and then only till you refresh the browser similar to other browsers (Chrome Canary 107 and Firefox Nightly 106), which animate it only once.

Although despite it being reproducible in Safari 15.6.1, it is not reproducible in Safari Technology Preview 152. Hence, I am going to mark this as "RESOLVED CONFIGURATION CHANGED" but I will tag other engineers to add details about which commit might have fixed it between STP 149 and STP152.