Skip to content

test: allow 1 px of overlap in the CMenu scrolling test on WebKit - #486

Merged
JuroOravec merged 1 commit into
mainfrom
fix/webkit-e2e
Oct 28, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
fix/webkit-e2e

Conversation

@JuroOravec

@JuroOravec JuroOravec commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

test_keyboard_moves_reveal_items_inside_a_menu_that_scrolls checks that the focused item fits inside the scrolling menu, and it allows 0.5 px on each edge. On WebKit the last item sticks out past the menu's bottom edge by just over 0.5 px. The likely cause is that the menu scrolls by a fractional amount and WebKit drops the fraction from scroll offsets. An overlap that small is not visible, so the test now allows 1 px on both edges. This is a test-only change.

Evidence

  • WebKit debug run 40589295973 on the debug/webkit-e2e branch recorded the geometry, rounded to 0.1 px. The menu's scroll offset was a whole 222 px. The item's bottom edge was at 129.1 px and the menu's inner bottom edge at 128.6 px. The run did not record the fractional offset the menu asked for. With the 1 px allowance, the test passed on WebKit in run 40626836570.
  • Locally, the test passes on Chromium and Firefox. WebKit hangs on my machine, so it ran only in CI.

The other CMenu WebKit failure

test_correlated_rerender_retains_reorder_and_recovers_from_removed_choices_and_submenu also fails on WebKit today, and this PR does not change it. #483 fixes the cause: a server re-render of an open CMenu made the menu inert (the browser ignores input and focus on it) during setup, which took focus off the item a second time. In WebKit debug run 40634878554, with #483's CMenu code, the unchanged test passed on WebKit, along with the other tests that re-render an open menu from the server and check what it keeps. So that test needs no test change; it should pass on WebKit once #483 merges, as it did in the debug run.

🤖 Generated with Claude Code

The scrolling-menu test allowed 0.5 px of overlap between the focused item
and the menu's edge. The menu asks to scroll by a fractional amount, and
WebKit drops the fraction from scroll offsets, so the item can stick out by
slightly more than 0.5 px. The test now allows 1 px on both edges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec JuroOravec changed the title test: let two CMenu tests pass on WebKit test: allow 1 px of overlap in the CMenu scrolling test on WebKit Oct 28, 2026
JuroOravec added a commit that referenced this pull request Oct 28, 2026
@JuroOravec
JuroOravec merged commit 91f0306 into main Oct 28, 2026
27 of 31 checks passed
@JuroOravec
JuroOravec deleted the fix/webkit-e2e branch October 28, 2026 15:59
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