Skip to content

Read a bounded region's own words as its place when the page also scrolls - #7213

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7212
Nov 26, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#7188 gave column and sidebar pages room below their end, so the page itself now scrolls even when it fits the window. Two tests turned red, and the room is the intended behavior in both. One exposed a runtime defect, and the other had stale setup.

  • Reading place in a bounded region. scrollsAlone walks up from a block to the box the place is read for. When the block is that box, as a bounded region's pre is, the walk went past it to <html>. <html> is overflow-y: scroll and now has a scroll range, so every line in a long text document counted as scrolling on its own, and capturePlace named no line. The walk now starts below the box only. A user sees this as a lost reading place inside a bounded document on any column or sidebar page whose end room makes the root scroll.
  • Evidence close in a diff. The test scrolled to the document's end to put the evidence at the window's foot. With the room, that scroll leaves the evidence wholly above the window (its bottom at −7 to −61 px), so the test was measuring an off-screen disclosure. The test now scrolls its following button to the window's foot. That is the geometry it had before Give a document's end room to rise to the window's top, and drop the deck's held height #7188, with the room below it. The behavior under test is unchanged.

Before this change, test_a_place_in_a_long_document_names_the_line_at_its_top and both failing engines of test_evidence_close_folds_room_but_retires_controls_immediately[*-file] fail on main dfde749f0 with the messages in #7212. All five cases pass after it. pnpm run test:runtime passes, and so do the bounded-region and scroll cases of test_reading_place.py.

Closes #7212 — automated triage

…olls

#7188 gave a column or sidebar page room below its end, so the root
scrolls even on a page that fits the window. `scrollsAlone` walks up from
a block to the box a place is read for; when the block is that box, as a
bounded region's body is, the walk passed it and stopped at the root,
which now scrolls, so the place in a long text document named no line.
The walk now starts only below the box.

The evidence-close test scrolled to the document's end to stand the
evidence at the window's foot. With the end room that scroll leaves it
wholly above the window, so the test now scrolls its following button to
the window's foot instead, the geometry it had before #7188.

Closes #7212
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.

Two browser tests fail since #7188 added room below a page's end: reading place in a long document, evidence close in a diff file

1 participant