Created attachment 384730 [details] slotted-element-animation.html STR: See test case slotted-element-animation.html. Expected result: I should see the same animation as the test case slotted-element-animation-no-sr.html Actual: Frames are skipped for quite some time on the test case. The element no longer animates. Note: Chrome and Firefox works fine. Version: STP Release 96 (Safari 13.1, WebKit 14609.1.9.7) macOS 10.14.6 (18G1012)
Created attachment 384731 [details] slotted-element-animation-no-sr.html
<rdar://problem/57597579>
Sounds similar to bug 201048.
This only happens with pure accelerated animations. Adding a color animation to the test case makes it work.
The underlying problem seems to be that we tear down and reconstruct the renderer when an animation is in progress but then fail to restart the animation on the new renderer/layer. Slots and shadow trees are incidental, they just trigger the wider-than-usual teardown.
Though it would also be good to avoid overly wide render tree updates on slot changes.
Created attachment 389498 [details] test case that reproes the bug without any shadow trees
This test case sets ::first-letter on body to cause render tree rebuild and break the accelerated animation. Works fine in Firefox and Chrome.
Created attachment 389502 [details] wip
The patch also fixes 204805, duping to the older bug. *** This bug has been marked as a duplicate of bug 201048 ***