Repository navigation
End a document at its last line, with no room below it - #7438
Merged
Merged
Conversation
A column or sidebar page now ends where its content does, as a web page does. The room below the last line that #7188 added, nearly a window of blank space (864px on a 999px-tall window), is gone, and so is everything that existed only for it: the end-room term in the sidebar track's hang (#7308) and its rule, and the test helper that took the room away, with its calls. What a reader sees differently, near a page's end only: removing items there drops what stands above them by the removed height; closing a disclosure there drops its summary; `m` lands a question at the end low in the window rather than at the landing line; and Back on a deck that ends the page brings up a shorter card and carries Back down from under the pointer (404px in the hold-still journey). Higher up a page, nothing changes. Max chose "No room" on his review page, after trying each case in a preview, and asked for it to be merged. The deck's case is a separate question he raised, so this change leaves the deck's own code alone. layouts.css records the choice and the rejected room. The hold-still journey's deck-back cases are listed under the choices that bound the guarantee, which is what that journey's list is for (`MOVES_BY_CHOICE`). Kept: the contents map's fixed track (#7345) and its header and footer conditions, and the stuck track's hang through the sidebar's own end padding (#6671). On the README copy in Firefox at 1728x999, the map's top stands at 32px from the page's top to its end, and nothing is left below the last line. Tests restored to their state before the room: the stuck-track test's shells and footer checks, the presentation test's body height, the chrome-room reading, and the tabs journey's "nothing to scroll" check. Tests: every test that took the room away or was adapted to it, run by node id in Chromium and Firefox (68 passed, and the two deck-back cases fail as listed), the layer model tests and pre-commit. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 27, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 27, 2026
…ack (#7441) Adds a test that the contents map's fixed track stays fixed beside an element a browser extension appends to the body, and sticks beside a site footer after `main`. #7438 dropped the stuck-track test's extension check, since that check guarded the end-room rule it deleted. The same footer-only condition in `browser/layouts.css` still decides whether the map is fixed, and nothing else tested it. If the condition widened to "anything after `main`", the maintainer's map would go back to sticky and bouncing in his Firefox, whose extensions append elements to the body. Test only. It passes in Chromium and Firefox, and it fails on the appended element when the condition is widened to `:has(~ *)`. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 27, 2026
…nter (#7462) A deck now stands as tall as the tallest card it has shown, and the open card's frame fills that height, as a slider does with its tallest slide. Since #7438 a page ends at its last line, so at a page's end Back from a tall card to a short one shrank the deck and the browser pulled the page down, carrying Back 404px from under the pointer. Now Back stays put, mid-page and at the end. This brings back #7150's hold (`#hold`, the width observer, the flex fill), which #7188 dropped in favour of the end room. Max picked "Size every card to the tallest" on his review page from five options, after trying each in a preview. To weigh: a short card's frame stands tall round its content (in the journey's page, 660px round about 256px of content). The height held is the tallest card shown so far, not the tallest in the deck, so the first visit to a taller card still grows the deck; growth moves nothing above it. Tests: the hold-still journey's deck-back rows pass in Chromium and Firefox and leave the expected-failure list; the deck tests on height, scrolling and Undo pass. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
added a commit
that referenced
this pull request
Nov 28, 2026
…tuck strip (#7533) `test_root_tabs_switch_views_without_moving_the_strip_and_follow_history` asserted that switching the stuck root tab strip to Summary, a view much shorter than the window, keeps the page scrolled below its top. That relied on the room below a document's last line, which #7438 removed by the maintainer's choice ("a document ends at its last line"). Without it, the page with Summary open fits the 720px window, so the browser clamps `scrollY` to 0 and the strip comes down with the header. This is the case #7438's description names: a block that shrinks near the page's end moves what stands above it down. This keeps #7438's intent and updates the expectation it replaced: - The stuck-strip start (a never-read view opens at its start under the stuck strip) is now checked on Plan, which is taller than the window, switched to from Evidence read at 450px. - Summary is now expected to show the page's end (`scrollY` equals `scrollHeight - innerHeight`, floored at 0), with `#release-summary` wholly on screen. - The rest of the journey (Evidence reopening where it was read, keyboard walk, Back/Forward, reveal, reload, resize) is unchanged. The `lf-tabs.js` header, which promised the strip always stays where it is, now names the short-view case. No runtime or CSS changes. The journey fails by node id on `main` (`assert 0 < 0`, at Summary) and passes with this change in Chromium, which is the only engine it runs in. Closes #7529 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
A column or sidebar page now ends where its content does, as a web page does. This removes the room below the last line that #7188 added, nearly a window of blank space (864px on a 999px-tall window). It also removes everything that existed only for the room: the end-room term in the sidebar track's hang (#7308), and the test helper that took the room away for 16 tests.
What a reader sees differently happens only near a page's end. Removing items there drops what stands above them by the removed height, and closing a disclosure there drops its summary.
mlands a question at the end low in the window rather than at the landing line. Back on a deck that ends the page brings up a shorter card and carries Back 404px down from under the pointer. Higher up a page, nothing changes.Max chose "No room" on his review page after trying each case in a preview, and asked for it to be merged. He raised the deck's case as a separate question, so this leaves the deck's code alone. The hold-still journey lists the deck-back cases under
MOVES_BY_CHOICE, its list of choices that bound the guarantee, andlayouts.cssrecords the rejected room.The contents map's fixed track (#7345) and its header and footer conditions stay, as does the stuck track's hang through the sidebar's own end padding (#6671). On a copy of the README page in Firefox at 1728×999, the map's top stays at 32px from the page's top to its end.
Tests: I ran every test that took the room away or was adapted to it by node id in Chromium and Firefox (68 passed, and the two deck-back cases fail as the journey's list expects), plus the layer model tests and pre-commit.