Skip to content

test: reproduce page-wide work on Draw-mode stroke release - #2778

Closed
leaf-agent wants to merge 1 commit into
mainfrom
repro/issue-2775
Closed

leaf-agent wants to merge 1 commit into
mainfrom
repro/issue-2775

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

This adds a failing browser reproduction for the page-wide work on Draw-mode stroke release. The test holds the optional drawing preview renderer, releases a stroke inside one card, and records computed-style reads before that renderer runs. On the current code it reads all 40 cards, rather than only the card under the ink. The focused test fails at that assertion; it has no product fix.

The held renderer narrows one cause: the release already performs a page-wide style walk before preview capture. It does not explain the separate screenshot cloning and margin-layout costs reported in #2775. Those paths still need a fix at their owning boundaries.

Automated triage for #2775

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new test fails at 40 <= 2 on this head. The pre-renderer reads come from Reach: paintReachNow() repaints every member of its global sideways set, and paintSidewaysReach() reads computed style for the code block in each card. The held preview module confirms this work happens before preview capture. A scoped Reach repaint for the changed region and affected ancestors would keep this regression test while removing the page-wide pass; this test-only head leaves the new browser gate red.

@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Superseded by #3374, which includes an updated version of this regression test and fixes the pre-preview page-wide scan. #2775 remains open for the other performance costs.

@leaf-agent leaf-agent closed this Oct 20, 2026
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