Repository navigation
test: expect a short root tab view to show the page's end under the stuck strip - #7533
Merged
Merged
Conversation
…tuck strip Since #7438 a document ends at its last line, so switching a stuck page-flow tab set to a view shorter than the window can no longer keep the strip at the window's top: the browser scrolls no further than the page's end. The tabs journey still asserted the room #7438 removed. The journey now checks the stuck-strip start on Plan, which is taller than the window, and that the short Summary view shows the page's end with the view whole on screen. The lf-tabs header states the short-view case. Behavior change (from #7438, not this commit): switching to a view too short to fill the window under the stuck strip carries the page to its end instead of holding the strip still. Closes #7529
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_root_tabs_switch_views_without_moving_the_strip_and_follow_historyasserted 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 clampsscrollYto 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:
scrollYequalsscrollHeight - innerHeight, floored at 0), with#release-summarywholly on screen.The
lf-tabs.jsheader, 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