Skip to content

Keep constrained margin scroll test target in view - #2754

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38392091985-scroll-seat
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38392091985-scroll-seat

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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-ancestor case failed on current main before 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.

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.
@leaf-agent
leaf-agent merged commit 89ec7a5 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38392091985-scroll-seat branch October 13, 2026 13:20
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.

1 participant