Skip to content

Show the selected trace input's whole band, and read clip margins as shown - #6802

Merged
max-sixty merged 1 commit into
mainfrom
trace-word-highlight-clip
Nov 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
trace-word-highlight-clip

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

In a Playwright trace's timeline, the selected input's name wears a 2px accent band around its pill, and the label holding the name cut the band's left side and top flat with its overflow: hidden. The label now clips with overflow: clip and an overflow-clip-margin the band's width, so the pill is rounded all round in Chromium and Firefox, light and dark; a long name still ends in an ellipsis. Safari has no overflow-clip-margin and keeps the cut band.

Where to look: shownBand in browser/runtime/geometry.js ignored overflow-clip-margin, so the suite's ring scan kept reporting the band cut after the CSS fix. It now widens a box's band by the margin when the box clips both axes with clip, the only case Chromium paints one. That reading also feeds page check --render, the margin layout and clipWalk, so .lf-field, the composer placeholder and a flying deck now read their clip where the browser paints it, a few pixels wider than before.

Found by sweeping the ring scan over every stills state while checking the panel field's ring for #6800, which Max asked for. Tests: the new test_the_selected_input_s_name_wears_its_whole_band fails on main's stylesheet; the runtime suite and the ring tests that read clipped bands pass.

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

…shown

In a Playwright trace's timeline, the selected input's name wears a 2px accent
band (a box-shadow) around its pill. The label holding the name clipped it with
`overflow: hidden`, and with no inline-start padding the band's left side and
top were cut flat, so the pill read square on one side in every engine. The
label now clips with `overflow: clip` and an `overflow-clip-margin` the width of
the band, one custom property both rules read; the ellipsis on a long name is
unchanged. Safari has no `overflow-clip-margin`, so there the band stays cut.

`shownBand` (geometry.js), the one reading of what a container lets the user
see, ignored `overflow-clip-margin`, so the suite's ring scan still reported the
band cut after the fix, and `page check --render` and the margin layout read
the clip of `.lf-field`, the composer placeholder and a flying deck a few
pixels short of where the browser paints. It now widens the band by the margin
on a box that clips both axes with `clip`, the only case Chromium paints one.

Found on 2026-11-22 by sweeping the ring scan over every stills state while
checking the panel field's ring under Send (#6800).
`test_the_selected_input_s_name_wears_its_whole_band` fails on main's
stylesheet.
@max-sixty
max-sixty merged commit 9f3dbd8 into main Nov 23, 2026
6 checks passed
@max-sixty
max-sixty deleted the trace-word-highlight-clip branch November 23, 2026 03:13
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