Skip to content

Stop floating comment cards from writing on carried scrolls - #2730

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-38333313254-scroll
Oct 13, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-38333313254-scroll

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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:runtime passes all 413 tests.

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.
@leaf-agent
leaf-agent merged commit fbc712c into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38333313254-scroll branch October 13, 2026 04:58
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