Repository navigation
Credit cancelled native animations in browser shift checks - #3553
Merged
Merged
Conversation
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The shift watch now samples animation endpoints only while their targets are connected. A finished or cancelled animation can retain a target inside a removed subtree; its empty computed styles become a NaN rotation in `elementAxes`, and composing the detached ancestors raises the reported DOMMatrix exception. This preserves #3553's cancellation readings for connected surfaces and the existing finish endpoint credit. The change belongs in the watch's selection of presentations to sample, rather than adding a detached-element fallback to runtime geometry. No shipped rendering changes. Validation: both new cancellation/completion cases reproduce the exact matrix exception before the fix and pass afterward. All 14 focused endpoint tests pass, including connected cancellation, authored-motion refusal and finish credit. The three composer/conversation cases named in #4227 also pass locally after the change. The previous scheduled run 40186470627 recorded those three cases passing, consistent with the teardown-dependent failure. Closes #4227 — automated triage Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The browser shift watcher now samples an applied native animation on both sides of
cancel(). A no-fill effect can return its content to the underlying layout before the next frame, aftergetAnimations()has stopped listing it; without that endpoint, the watcher reports the return as an unprompted shift. The existing origin check still keeps an authored layout change from receiving animation credit.Main CI run 39761206257 reported a 1.39 px floating-panel title movement while its recorded animation values were unchanged. A focused cancellation case reproduced the missing credit before this change. Afterward, 14 focused browser cases passed, covering cancellation, animation finish, the reported floating-panel journey, and the render-gate case. Pre-commit passed. The run's duplicate DevTools image finding is already addressed by #3549.