Repository navigation
Drop the contents map's fixed track; every sidebar track sticks - #7486
Merged
Merged
Conversation
The Layout fixed a narrow sidebar track in the window where the sidebar was the page's `main` with no header or footer, so the contents map's spine held still through the rubber band, which moves a stuck sticky box with the page in Firefox and Chrome. Since #7473 a page narrows its own sidebar for the spine, and none of the maintainer's 37 sidebar pages with a map met every condition. Holding the open outline still too stood it 40px above the page's first line on arrival. The maintainer chose to drop the fixed track. What a user sees differently: on a spine page with no header or footer, such as Leaf's site, the map opens level with the page's first line, rises 40px with the page before it sticks, and moves with the bounce at either end, as outline pages already do. Removed: the fixed rule, `--lf-sidebar-spans-page` and the four rules that set it from the page's header and footer, and the two browser tests that held them (a header above the map keeps it below the header; an element an extension appends to `body` leaves the track fixed). The spine test now expects a sticky track.
leaf-agent
approved these changes
Nov 28, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 28, 2026
…stands still (#7507) `test_the_lens_follows_the_scroll_in_every_engine` failed in Chromium, Firefox and WebKit on the assertion that the map stands still in the window (`AssertionError: [96, 56, 56]`). The lens itself followed the scroll the whole time. That assertion passed. #7486 dropped the contents map's fixed track, and its description says a spine page with no header or footer now shows the map level with the page's first line, and the map rises 40px before it sticks. The test's map positions match that exactly: 96px at the top, then 56px once stuck. So the test's expectation is stale, and the code is behaving as the maintainer chose. The test now asserts that the map stands still once its track sticks, from the middle of the document to its foot. The lens assertion is unchanged. Run by node id with `--run-main -n0`: the test fails in all three engines on `main` (`99fcb95a3`) and passes in all three with this change. The neighbouring sticking-track and spine tests also pass. Closes #7501 — 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.
Removes the fixed positioning the Layout gave a narrow sidebar track (the contents map's spine) where the sidebar was the page's
mainwith no header or footer, along with--lf-sidebar-spans-pageand the four rules that read the page's header and footer to set it. Every sidebar track now sticks.Since #7473 a page narrows its own sidebar for the spine, so the fixed track held still on none of the maintainer's 37 sidebar pages with a map; holding the open outline still too would stand it 40px above the page's first line on arrival. The maintainer chose to drop it.
What changes for a user: on a spine page with no header or footer, such as Leaf's site, the map opens level with the page's first line, rises 40px before it sticks, and moves with the rubber band in Firefox and Chrome, as outline pages already do. The decision is recorded in the
layouts.cssheader.Tests: the two browser tests of the fixed track's conditions go; the spine test now expects
sticky. Focused track tests pass in Chromium and Firefox.