Repository navigation
test: allow 1 px of overlap in the CMenu scrolling test on WebKit - #486
Merged
Merged
Conversation
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
force-pushed
the
fix/webkit-e2e
branch
from
October 28, 2026 05:24
792811f to
054c07b
Compare
JuroOravec
added a commit
that referenced
this pull request
Oct 28, 2026
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_keyboard_moves_reveal_items_inside_a_menu_that_scrollschecks 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
debug/webkit-e2ebranch 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.The other CMenu WebKit failure
test_correlated_rerender_retains_reorder_and_recovers_from_removed_choices_and_submenualso 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