Repository navigation
Stop floating comment cards from writing on carried scrolls - #2730
Merged
Merged
Conversation
When native CSS anchors carry a floating card, repeated solves can change only the unused fallback viewport coordinate. Keep the authored anchor position until the relative offset, edge, frame, or anchor changes. This restores the no-write scroll contract while preserving the fallback for an anchor that disappears between placements. Two failing browser scroll tests and adjacent response-bar and draft checks pass; the runtime suite passes.
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.
Native CSS anchors carry a floating comment card with its passage during scroll, but the placement solver was rewriting the card's fallback viewport coordinate on every scroll. Those writes triggered page-wide highlight repaints and failed two no-write browser checks in main CI run 38333313254. Keep the authored CSS position while the anchor, held edges, and relative offset are unchanged; recompute it when any of those change. The fallback added by #2650 remains available if the anchor disappears between placements.
Both failing scroll checks pass after this change. The neighboring response-bar scroll check and retained-draft check pass, and
pnpm run test:runtimepasses all 413 tests.