Repository navigation
fix: stop sampling detached animation targets in the shift watch - #4262
Merged
Merged
Conversation
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
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 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