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.
Created attachment 421930 [details] Firefox
Created attachment 421931 [details] Safari
<rdar://problem/74926700>
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.
Cc'ing Martin who's been looking at css-transforms issues recently.
Created attachment 451251 [details] Patch
Created attachment 451268 [details] Patch
Yes, this is working fine for me in STP 139 and Safari in macOS 12.3 Beta.
Oops, I commented on the wrong bug!
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.
Created attachment 451368 [details] Patch
Created attachment 451676 [details] Patch
Created attachment 451879 [details] Patch
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].
*** Bug 235804 has been marked as a duplicate of this bug. ***
*** Bug 235802 has been marked as a duplicate of this bug. ***