Repository navigation
test: scroll the open contents outline with the wheel, and drop its opaque-background check - #5731
Merged
Merged
Conversation
…er check #5637 drew the contents map as a block in its sidebar track instead of a fixed overlay. Two readings in test_a_route_taller_than_the_map_returns_to_an_open_outline still assumed the overlay. The "measuring keeps the place the reader scrolled to" subtest wrote scrollTop = 0 from a script. A script's write is no reader gesture, so the page's recorded reading place still names the focused last link, and a resize's restore brings it back into view (reading-place.js, restorePlace). The fixed map used to escape that as a stuck box (geometry.js, stuckBox); the in-track map doesn't. The subtest now scrolls the outline with the wheel, as a reader does, and its scroll position holds across both resizes. It still fails when lf-toc reveals a focused link that was out of view. The background assertion is removed. #5637 deliberately dropped the open outline's opaque paper, since the outline no longer lies over the document. The assertion before it, that the outline ends left of the column, still holds that guarantee. Closes #5705
This was referenced Nov 9, 2026
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.
test_a_route_taller_than_the_map_returns_to_an_open_outlinehas failed on main since #5637 drew the contents map as a block in its sidebar track rather than a fixed overlay. Two of its readings still assumed the overlay. This PR updates the test and changes no product code. #5637's intent and the outline's behavior both stay as they are.scrollTop = 0from a script. Leaf doesn't count a script's write as the reader's gesture, so the page's recorded reading place still named the focused last link. On resize,restorePlace(browser/runtime/reading-place.js) scrolled that link back into view inside the nav (1727px). The fixed map used to escape this becausestuckBoxtreated it as a stuck box; the in-track map, standing in an unstuck sticky track, doesn't. The subtest now scrolls with the mouse wheel, as a reader would, and the position holds at 0 across the 900px and 700px resizes. It still guardslf-toc: with#fitLabels's "focused link was visible" condition removed, it fails with the same1727 == 0.background: var(--paper), since the outline no longer lies over the document. The assertion just before it, that the outline ends 16px left of the column at a 1188px window, still covers that guarantee.Verification: the test fails on current main (
assert 1727 == 0at line 1205) and passed three of three runs locally withuv run pytest --run-mainafter the change.Closes #5705 — automated triage