RESOLVED FIXED Bug 222595
Animation from "scale()" to "scale() translate()" does not yield the expected result
https://bugs.webkit.org/show_bug.cgi?id=222595
Summary Animation from "scale()" to "scale() translate()" does not yield the expected...
Antoine Quint
Reported 2021-03-02 06:44:40 PST
Created attachment 421929 [details] Test The attached test runs the following animation: document.querySelector("div").animate({ transform: ["scale(2)", "scale(0.1) translateX(-200px)"] }, 1000); In Firefox and Chrome you can see the elements animate one way (see screen recording) and in Safari (after r273656, the fix for bug 222545) another way. We likely have the incorrect behavior.
Attachments
Test (340 bytes, text/html)
2021-03-02 06:44 PST, Antoine Quint
no flags
Firefox (494.75 KB, video/quicktime)
2021-03-02 06:45 PST, Antoine Quint
no flags
Safari (182.06 KB, video/quicktime)
2021-03-02 06:45 PST, Antoine Quint
no flags
Patch (31.42 KB, patch)
2022-02-08 08:15 PST, Martin Robinson
no flags
Patch (49.88 KB, patch)
2022-02-08 10:03 PST, Martin Robinson
no flags
Patch (53.11 KB, patch)
2022-02-09 06:42 PST, Martin Robinson
no flags
Patch (60.74 KB, patch)
2022-02-11 05:00 PST, Martin Robinson
no flags
Patch (53.81 KB, patch)
2022-02-14 03:17 PST, Martin Robinson
no flags
Antoine Quint
Comment 1 2021-03-02 06:45:02 PST
Antoine Quint
Comment 2 2021-03-02 06:45:15 PST
Radar WebKit Bug Importer
Comment 3 2021-03-02 06:45:58 PST
Antoine Quint
Comment 4 2021-03-02 07:02:52 PST
This is not a recent regression, at the very least this behavior was also observable in Safari 13 before Web Animations were supported, using a similar test with CSS Transitions.
Antoine Quint
Comment 5 2022-02-07 00:14:24 PST
Cc'ing Martin who's been looking at css-transforms issues recently.
Martin Robinson
Comment 6 2022-02-08 08:15:40 PST
Martin Robinson
Comment 7 2022-02-08 10:03:31 PST
Antoine Quint
Comment 8 2022-02-08 11:36:27 PST
Yes, this is working fine for me in STP 139 and Safari in macOS 12.3 Beta.
Antoine Quint
Comment 9 2022-02-08 11:36:53 PST
Oops, I commented on the wrong bug!
Martin Robinson
Comment 10 2022-02-09 00:34:10 PST
Comment on attachment 451268 [details] Patch Looks like this is hitting an assertion failure in an assertion that I added. I'm investigating this now. It also probably makes sense for this to land after the patch in bug 236116.
Martin Robinson
Comment 11 2022-02-09 06:42:37 PST
Martin Robinson
Comment 12 2022-02-11 05:00:44 PST
Martin Robinson
Comment 13 2022-02-14 03:17:12 PST
EWS
Comment 14 2022-02-14 06:04:21 PST
Committed r289732 (247217@main): <https://commits.webkit.org/247217@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451879 [details].
Antoine Quint
Comment 15 2022-02-14 06:22:45 PST
*** Bug 235804 has been marked as a duplicate of this bug. ***
Antoine Quint
Comment 16 2022-02-14 06:23:21 PST
*** Bug 235802 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.