Repository navigation
fix: read a visible passage in the pane resize test - #4283
Merged
Merged
Conversation
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 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 --checkpass. Local Ruff checks could not run because the executable is absent; PR CI supplies the formatting gates.Closes #4275 — automated triage