Repository navigation
Keep constrained margin scroll test target in view - #2754
Merged
Merged
Conversation
The test prepends a 300px scroller, which can move the page scroll and leave the target above the viewport before its first visibility assertion. Return to the new target before checking its retained margin seat. All three constrained-position cases pass.
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.
The constrained margin scroll test prepends a 300 px scroller, then assumes its new target is visible. In main CI run 38392091985, browser scroll anchoring left the target and its correctly aligned margin row at
top: -106; the visibility assertion failed before the test made its first inner scroll. This change brings the new target into view after rendering, then checks the same margin alignment and visibility through every scroll step.The
sticky-ancestorcase failed on currentmainbefore the change. After it, all three constrained-position cases passed locally (uv run pytest -q -n0 'tests/browser/test_render_margin.py::test_observed_scroll_retains_the_seat_of_a_constrained_target'). The run's other failures have separate repairs in #2748, #2749, #2752, and #2753.