Skip to content

fix: stop sampling detached animation targets in the shift watch - #4262

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4227
Oct 26, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4227

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

Only connected targets have a presentation to sample. An ending animation can retain a child in a removed subtree, whose empty computed rotate becomes NaN and fails DOMMatrix composition. Preserve connected endpoint credit while excluding detached presentations at the motion reader.

Closes #4227
@leaf-agent
leaf-agent merged commit 12ebe90 into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4227 branch October 26, 2026 15:13
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.

Motion matrix multiplication rejects a 3D matrix marked is2D

1 participant