Bug 127174

Summary: setCurrentTime method breaks svg animation
Product: WebKit Reporter: Tamas Gergely <tgergely.u-szeged>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, bfulgham, dino, krit, pdr, sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=249741
Attachments:
Description Flags
svg that triggers the bug. none

Description Tamas Gergely 2014-01-17 07:26:31 PST
Created attachment 221465 [details]
svg that triggers the bug.

Using document.documentElement.setCurrentTime() with a time value greater than the duration of the svg animation results in the animation is finished after the second repeat. This happens when the animation begin time is (syncbase) dependent on the end time of itself. Using repeatDur instead of self-dependency works fine.
Comment 1 Brent Fulgham 2022-07-15 16:48:13 PDT
This continues to be an issue in Safari 15.5+. Works properly in Chrome and Firefox.
Comment 2 Radar WebKit Bug Importer 2022-07-15 16:48:32 PDT
<rdar://problem/97100972>
Comment 3 Ahmad Saleem 2023-05-11 10:41:22 PDT
I have patch for bug 256651 and it seems to make this pass on WebKit ToT (263973@main) on local build.

It is still broken in Safari Technology Preview 169.
Comment 4 Ahmad Saleem 2023-05-11 12:33:01 PDT
Confirmed after backing out my patch for other bug and rerunning attached testcase, it fails while after patch, it matches Chrome.

Marking this duplicate for other, since I already have PR for it.

*** This bug has been marked as a duplicate of bug 256651 ***