Repository navigation
Test that only a footer after main unpins the contents map's fixed track - #7441
Merged
Merged
Conversation
#7438 removed the stuck-track test's check that an element a browser extension appends to the body leaves the track where it stands, since that check guarded the end-room rule it deleted. The same condition still decides whether the contents map's track is fixed: the map stays fixed beside an appended element and sticks beside a site footer. A regression to "anything after main" would leave the maintainer's map sticky and bouncing in his Firefox, whose 1Password, Readwise, AdBlock and Surfingkeys each append elements to the body. The new test reads the track's position alone, beside an appended live region, and beside a footer after main, in Chromium and Firefox. With the footer condition widened to `:has(~ *)` it fails on the appended element.
leaf-agent
approved these changes
Nov 27, 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.
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 inbrowser/layouts.cssstill decides whether the map is fixed, and nothing else tested it. If the condition widened to "anything aftermain", 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(~ *).