Skip to content

Keep a trace's point details ring whole where scrollbars overlay - #7067

Merged
max-sixty merged 2 commits into
mainfrom
trace-ring-right-edge
Nov 24, 2026
Merged

max-sixty merged 2 commits into
mainfrom
trace-ring-right-edge

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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-controls and trace-image-scale stills; 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 on review-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.

This was written by Claude Code on behalf of max-sixty

…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.
@max-sixty
max-sixty merged commit b4abc0b into main Nov 24, 2026
6 checks passed
@max-sixty
max-sixty deleted the trace-ring-right-edge branch November 24, 2026 22:17
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.

2 participants