Skip to content

Credit cancelled native animations in browser shift checks - #3553

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39761206257-cancelled-motion
Oct 22, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39761206257-cancelled-motion

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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, after getAnimations() 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.

@leaf-agent
leaf-agent merged commit 4d4d983 into main Oct 22, 2026
3 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39761206257-cancelled-motion branch October 22, 2026 13:54
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant