Repository navigation
Keep a trace's point details ring whole where scrollbars overlay - #7067
Merged
Merged
Conversation
…bars overlay The point details box stands its focus ring one band inside its edge and padded only its start side, relying on the scrollbar gutter for room on the other. Where scrollbars overlay the content (macOS, headless browsers) the gutter is zero wide, so the sticky "Saved elements" row's opaque background reached the edge and covered the ring's right side. test_each_sampled_focus_ring_is_shown_whole_in_its_surface failed on review-a-fix. The box now pads both sides by a ring's room.
leaf-agent
approved these changes
Nov 24, 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.
When the keyboard focuses a Playwright trace's point details, the box's focus ring lost its right edge beside the sticky "Saved elements" row. The ring stands one band inside the box. The box padded only its start side and relied on the scrollbar gutter to keep its rows off the band on the other side. Where scrollbars overlay the content, as on macOS and in headless browsers, the gutter takes no room, so the row's opaque background reached the edge and painted over the ring. The box now pads both sides by a ring's room.
No pixel changed in the
trace-controlsandtrace-image-scalestills; the rows only stand 5px further from the right edge.This was found by
test_each_sampled_focus_ring_is_shown_whole_in_its_surface, which fails on main onreview-a-fix. The nightly hadn't reported it, because the test stopped at an earlier example (#7017). The maintainer asked why the failure had no issue, and it is fixed here instead.Tests: that test and the three trace tests that measure the details box pass.