Bug 136524
| Summary: | animate element restart="never" does not work | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Balazs Torma <balazs.torma.eu> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Major | CC: | ahmad.saleem792, ap, bfulgham, krit, pdr, rniwa, simon.fraser, zalan, zimmermann |
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Balazs Torma
Even when setting restart="never" for an animation, the animation restarts.
See fiddle http://jsfiddle.net/hLtzfo81/
This works on firefox.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Balazs Torma
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
Philip Rogers
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.
Dirk Schulze
(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.
Philip Rogers
(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.
Ahmad Saleem
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.