Repository navigation
Delete the fragment-landing test whose fault can no longer happen - #2493
Merged
Merged
Conversation
`test_the_feature_gallery_fragment_lands_after_presented_controls_take_space` was written (9df147a) when a docked margin row could take space above a fragment's target after the browser had landed it, so presentation flushed margin layout before re-landing. Since #1164 every margin row stands in the chrome's margin layer and "nothing it draws moves that content" (margin-layout.js header), so no row can push the target down. The test passes with that flush removed, and still passes with Chrome's scroll anchoring disabled; a per-frame probe showed the target and the document height unchanged as twenty clusters arrived above it. What a user depends on stays held elsewhere: a fresh fragment lands at the landing edge (`test_an_arrival_keeps_a_readable_native_fragment_where_the_browser_landed_it`) and stays in view through a deferred interface start (`test_render_startup`'s `#destination` case), and margin rows are absolutely placed in the chrome's layer, so they have no box in the page's flow to push with. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # tests/test_render_margin.py
leaf-agent
approved these changes
Oct 12, 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.
test_a_fragment_lands_after_presented_controls_take_space(before #2485,test_the_feature_gallery_fragment_lands_after_presented_controls_take_space) can no longer fail, so this deletes it and its stalecost_tiers.jsonentry.It was written in 9df147a, when a docked margin row could take space in the page above a fragment's target after the browser had landed it, so presentation flushed margin layout before landing again. Since #1164 every margin row stands absolutely placed in the chrome's margin layer ("nothing it draws moves that content",
margin-layout.js's header), so no row can push the target down. The test passes with theapp.overlay?.flushLayout()beforelandFragment()removed, and still passes with Chrome's scroll anchoring turned off; a per-frame probe showed the target and the document height unchanged while twenty margin clusters arrived above it.The landing a user depends on stays covered by
test_an_arrival_keeps_a_readable_native_fragment_where_the_browser_landed_it(a fresh fragment lands at the landing edge) andtest_a_gallery_import_settles_before_initial_presentation(the destination stays in view through a deferred interface start). Both pass on this branch.