Skip to content

Reveal rows in fixed layers, and read the thread card's top row by its painted name - #2306

Merged
max-sixty merged 2 commits into
mainfrom
fix-main-browser-tests
Oct 10, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix-main-browser-tests

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Two browser tests fail on main at 8bff2b4. Neither is among the fix/ci-38051185604-* PRs.

Page Map End leaves the last row out of view (test_page_map_filtering_keeps_search_and_close_in_place, all three viewports; red in main CI run 38067192989). #2255 moved walk and search landings from native focus scrolling to Leaf's document-local scrollIntoView. That function returned early when no reading region held the destination, and no reading region holds a row in a modal layer. So End focused the Page Map's last row and left it below the list's scrollport. A destination with no reading region now has its enclosing boxes reveal it at the nearest edge, out to the fixed layer. The walk also stops at a fixed box whether or not that box clips, so an overflow: visible fixed wrapper no longer lets the reveal scroll the pane behind it.

The thread card's top-row reading depends on font metrics (test_the_thread_card_opens_on_its_latest_message_under_its_own_name, fails on macOS, passes on Linux CI). On macOS the card lands with its top 7px into the previous message's pushed-off sticky head. That 7px is the head's blank foot, followed by the 16px gap before the next message's name. The test probed at half a head's height and hit the gap. The test now reads the first name painted in the card, requires that name's head to start in the top row, and checks that the words under the head belong to the same message, which is stricter than the old under in (named, -1).

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits October 10, 2026 14:34
…s painted name

#2255 moved walk and search landings from native focus scrolling to
Leaf's document-local `scrollIntoView`. That function returned early when
no reading region held the destination, which is every row of a modal
layer: End in the Page Map focused its last row and left it below the
list's scrollport. A destination with no reading region now has its
enclosing boxes reveal it nearest, out to the fixed layer, and the walk
stops at a fixed box whether or not that box clips.

The thread card test probed the card's top row at half a head's height.
On macOS the card lands with its top 7px into the previous message's
pushed-off head, a blank foot, then the 16px gap before the next
message's name, so the probe read the gap; Linux metrics happened to
land on a head. The reading is now the first name painted in the card,
whose head must start in the top row, with the words under that head
written by the same message.

Fixes, on main at 8bff2b4:
- test_render_margin.py::test_page_map_filtering_keeps_search_and_close_in_place (all viewports)
- test_render_threads.py::test_the_thread_card_opens_on_its_latest_message_under_its_own_name (macOS)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit c47d70b into main Oct 10, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix-main-browser-tests branch October 10, 2026 22:46
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.

2 participants