Skip to content

fix: read a visible passage in the pane resize test - #4283

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The pane round-trip test scrolled only 300px from the top of wt-merge, then measured a Steps paragraph that was still below the phone viewport. #4269 changed panel clearance in flowing workspaces, exposing that setup's dependence on the preceding film's height. Restoring the earlier layout stylesheet makes the original test pass, but reverting that layout improvement would preserve the wrong premise.

The test now brings Steps into view before its wheel gesture, waits for that gesture to move the document, and asserts that the measured passage is visible before resizing. Its existing two-pixel round-trip assertion remains unchanged. No product behavior changes.

Validation: the original test reproduced the reported 791.125 → 687.125 failure on current main. The corrected test passes; disabling reading-region transition restoration as a temporary control makes it fail (156.125 → 1091.125), so it still protects reading continuity. Python compilation and git diff --check pass. Local Ruff checks could not run because the executable is absent; PR CI supplies the formatting gates.

Closes #4275 — automated triage

Bring Steps into view before the wheel gesture and require the measured passage to be visible. This preserves the reading-position assertion without coupling it to the preceding film height or reverting panel clearance from #4269.

Closes #4275
@leaf-agent
leaf-agent merged commit 7fd6a51 into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4275 branch October 26, 2026 18:38
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.

Pane resize loses the previously read passage position

1 participant