NEW 208595
Popsicle animation does not match rendering in either Firefox or Chrome
https://bugs.webkit.org/show_bug.cgi?id=208595
Summary Popsicle animation does not match rendering in either Firefox or Chrome
Naman Goel
Reported 2020-03-04 13:22:54 PST
Created attachment 392466 [details] Screen recording from Safari TLDR; ===== If you transition multiple elements at the same time, occasionally the transitions won't play at the same time and get staggered instead. To Reproduce: ------------- https://codepen.io/picks/pens/ There is a carousel on this link and if you try to click the arrow buttons a few times you will notice that the animation go out of sync. It is also possible to notice the same bug if you make a grid of divs and apply a transition to all the divs where they all have a staggered delay. Ask me to add a code example, and I will. Attachments: ------------ I'm attaching a video from Safari. Notice how Safari chooses to play the transitions out of sync. This might have been an intentional decision to keep animations from dropping frames in Webkit, but keep the timing/duration is more important in practice.
Attachments
Screen recording from Safari (57.40 MB, video/quicktime)
2020-03-04 13:22 PST, Naman Goel
no flags
Screen Recording from Chrome (147.24 MB, video/quicktime)
2020-03-04 13:26 PST, Naman Goel
no flags
Naman Goel
Comment 1 2020-03-04 13:26:41 PST
Created attachment 392468 [details] Screen Recording from Chrome
Naman Goel
Comment 2 2020-03-04 13:30:43 PST
Further investigation shows that the problem is much better in new versions of Safari. A previous version of safari would've choked on this, but now it works smoothly: https://codepen.io/colinkeany/pen/RJXOqM This leads me to think that iframes and videos specifically cause animations to jank.
Naman Goel
Comment 3 2020-03-04 13:33:00 PST
Another update: https://codepen.io/colinkeany/pen/RJXOqM The animations do eventually go slightly out of sync, but the deviation is small.
Naman Goel
Comment 4 2020-03-04 14:02:38 PST
Another example that shows animation problems in Safari: https://codepen.io/tiggr/pen/mdJmaMr
Antoine Quint
Comment 5 2020-03-05 00:44:22 PST
(In reply to Naman Goel from comment #2) > Further investigation shows that the problem is much better in new versions > of Safari. Which versions of Safari / macOS in particular are you comparing? Have you looked at recent Safari Technology Preview builds and/or macOS 10.15.4 betas as well? We have switched to a new animation engine based on the Web Animations specification recently.
Radar WebKit Bug Importer
Comment 6 2020-03-05 10:20:39 PST
Radar WebKit Bug Importer
Comment 7 2020-03-05 10:20:54 PST
Antoine Quint
Comment 8 2020-04-15 13:42:16 PDT
So that last test case shows an animation issue where the three colored parts that eventually melt don't quite grow as expected: https://codepen.io/tiggr/pen/mdJmaMr. However, I'm not seeing obvious issues with previous reported links. So I think we'll keep this bug about https://codepen.io/tiggr/pen/mdJmaMr. Naman Goel, thanks for filing this. Please raise individual bugs when you find an issue, it makes things easier to track.
Antoine Quint
Comment 9 2020-04-15 13:44:38 PDT
There's also a delay for the melting drops that we don't seem to be respecting.
Antoine Quint
Comment 10 2020-04-15 13:51:19 PDT
Retitling to match the work tracked for this bug. Note that neither Safari nor Firefox nor Chrome have the same behavior here. I believe the intended behavior is the one from Chrome, though it remains to be seen if it's compliant (though I gather it is).
Naman Goel
Comment 11 2020-04-18 13:48:07 PDT
The popsicle example is the most egregious. The other bugs don’t happen consistently anyway.
Note You need to log in before you can comment on or make changes to this bug.