Skip to content

Delete the fragment-landing test whose fault can no longer happen - #2493

Merged
max-sixty merged 3 commits into
mainfrom
gallery-defects
Oct 12, 2026
Merged

max-sixty merged 3 commits into
mainfrom
gallery-defects

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 stale cost_tiers.json entry.

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 the app.overlay?.flushLayout() before landFragment() 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) and test_a_gallery_import_settles_before_initial_presentation (the destination stays in view through a deferred interface start). Both pass on this branch.

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

max-sixty and others added 3 commits October 11, 2026 21:15
`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
@max-sixty
max-sixty merged commit e1cd5eb into main Oct 12, 2026
3 checks passed
@max-sixty
max-sixty deleted the gallery-defects branch October 12, 2026 05:30
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