Bug 170841
Summary: | animation-play-state: paused does not work when animation includes transform3d | ||
---|---|---|---|
Product: | WebKit | Reporter: | Hansol Kim <kimatg> |
Component: | Animations | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | dino, graouts, mduve, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 10 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 10 |
Hansol Kim
In iOS 10.3.1 Safari, animation-play-state: paused does not work when animation includes a transform3d.
While searching I came across a report posted on Apple Communities: https://discussions.apple.com/thread/6762081?start=0&tstart=0
The OP has posted 2 jsfiddle links for tests which I think demonstrate this issue clearly, so I will post the links here directly.
Example with normal transform (2d): http://jsfiddle.net/gdementis/p2MgM/3/
Example with transform3d: http://jsfiddle.net/gdementis/HykgE/2/
When tested on desktop Safari 10.1 (12603.1.30.0.34), both examples work properly when clicking on Stop to pause the animation.
When tested on iPhone Safari, the Stop button on the 2nd jsfiddle does not stop the animation.
I discovered this bug when working on my own project where I had used animation-play-state: paused on an element that runs a repeating animation that has scale() transform, and the pause did not work as expected only on iPhone.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/31622658>
Michael Duve
Created a jsfiddle as well, when I stumbled upon this bug ticket, while I was starting to create my own
https://jsfiddle.net/dazlious/ct8zejnu/5/
Needs to be fixed
Antoine Quint
Both animations pause in JSFiddle as expected with iOS 16.