Skip to content

fix: stand a clipped target's brackets inside its edge - #4308

Merged
max-sixty merged 6 commits into
mainfrom
chosen-option-face
Oct 27, 2026
Merged

max-sixty merged 6 commits into
mainfrom
chosen-option-face

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#4297 drew the thread contour just inside a target that a clipping box leaves no room around, such as a cell of a joined lf-options group. #4294 then redrew every rectangular contour as two brackets on ::before and ::after, flush outside the target, and removed the outline that the inset rule moved. On a chosen option, the group's frame again cuts away the brackets' sides and leaves their corner stubs sticking out across the frame and the neighbouring options.

The inset now moves the brackets. The rule sits with the bracket rule in browser/styles/chrome.css and shifts both pseudo-elements one band inside the edge. The painter now measures the band (--focus-ring-w) as the room a contour needs, since the brackets no longer stand at the focus ring's gap.

leaf-dev stills --state ship-option-thread-open: in the before still, the bracket stubs stand outside the chosen cell's corners, over the group frame. In the after still, the brackets sit inside the cell's edge. The dark state changes the same way, and ship-thread-open, a heading with room around it, is unchanged. test_a_contour_stands_inside_a_target_its_clip_leaves_no_room_around now reads the bracket's outline; it fails with the toggle disabled and passes in Chromium and Firefox.

test_render_aim.py::test_a_shadow_visual_surface_is_clipped_by_its_host also fails on main since #4294 (342 against a limit of 340), with or without this change.

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

max-sixty and others added 4 commits October 26, 2026 17:05
A widget lends a face for an obligation digit and chooses where it
stands. When something covers or clips that face, the keyboard hints
paint a core chip instead, and that chip hung off the upper-left corner
of the face's control. For lf-options' Add cell the control is the text
field, so with an open thread card over the Add seat the 3 chip sat on
the first letters of "Add another option".

The chip now takes the face's own place, so the widget's placement
holds. Where whatever covers the face covers that place too, as the
thread card does, the chip stays under it like the face, as the
options' own digits in that column already did. A clipped face's chip
still shows whole, since chips stand outside the clip.

The unusable-face test now checks that covered and clipped faces' chips
stand where their faces are.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#4297 drew the thread contour just inside a target that a clipping box
leaves no room around, such as a joined lf-options cell. #4294 then
redrew every rectangular contour as two brackets on `::before` and
`::after`, flush outside the target, and dropped the outline the inset
rule moved. On a chosen option the group's frame again cut the brackets'
sides and left their corner stubs across the neighbouring options.

The inset now moves the brackets: it sits with them in chrome.css and
shifts both pseudo-elements one band inside the edge, and the painter
measures the band (`--focus-ring-w`) as the room a contour needs, since
the brackets no longer stand at the focus ring's gap. The test reads
the bracket's own outline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 27, 2026
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The browser contour tests still read source outlines or continuous
borders after #4294 moved rectangular target paint to projected
brackets. Read the bracket pseudo-elements and use the shared focus-ring
diagnostic for keyboard visibility. The screenshot pixel checks now
measure both vertical sides and all four end caps at the projected
perimeter, using its actual outline color.

All ten reported tests failed on current main and pass with these
assertion changes. I inspected fresh captures of the screenshot's
pending comment and quiet margin trace: both bracket sides and their end
caps paint above the edge-to-edge frame. The preceding CI run's JUnit
records also show these ten tests passing before the bracket change.
Ruff checks and formatting pass.

This changes tests only; #4294's focus and annotation behavior stays
intact. The clipped-option paint repair remains in #4308.

Closes #4311 — automated triage

Co-authored-by: leaf-agent <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit e4ff878 into main Oct 27, 2026
4 checks passed
@max-sixty
max-sixty deleted the chosen-option-face branch October 27, 2026 01:41
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