Repository navigation
fix: stand a clipped target's brackets inside its edge - #4308
Merged
Merged
Conversation
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
previously approved these changes
Oct 27, 2026
This was referenced 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
leaf-agent
approved these changes
Oct 27, 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.
#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-optionsgroup. #4294 then redrew every rectangular contour as two brackets on::beforeand::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.cssand 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, andship-thread-open, a heading with room around it, is unchanged.test_a_contour_stands_inside_a_target_its_clip_leaves_no_room_aroundnow 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_hostalso fails onmainsince #4294 (342 against a limit of 340), with or without this change.