Skip to content

fix: read projected brackets in browser contour tests - #4322

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4311
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4311

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

Preserve focus visibility, thread anchoring and screenshot paint coverage after #4294 moved rectangular contours to pseudo-elements. Measure bracket sides and end caps instead of requiring a continuous top and bottom edge, and use the shared ring reading for keyboard focus.

Closes #4311
@leaf-agent
leaf-agent merged commit 14a239b into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4311 branch October 27, 2026 01:25
max-sixty added a commit that referenced this pull request Oct 27, 2026
The suggestion-ring test read the projected focus contour since #4322, which
stood in for the obligation's outline once #4294 projected focus onto every
focused page element. The projection now leaves an obligation to its own
location ring, so the test reads that outline, as it did before #4294.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
max-sixty added a commit that referenced this pull request Oct 27, 2026
… whole (#4337)

An ask reached by `m` was framed by two concentric blue lines, and a
picked option's green ring lost half its lower edge to the grey divider.
Both came from two mechanisms drawing on the same pixels.

**One ring round an arrived-at ask.** Since #4294 the annotation overlay
projects a focus contour flush outside any keyboard-focused page
element. An `m` arrival focuses the obligation, which already wears its
location ring at the ring's gap (`chrome.css`, and `ask.css`'s overlay
for an ask), so the two stood 3px apart. Before #4294 the projected
focus stood at the same gap and the two coincided. `anchor-paint.js` now
leaves an element wearing `data-lf-obligation` to its location ring, as
it already leaves a face wearing another control's ring. The
suggestion-ring test, which #4322 pointed at the projected contour,
reads the obligation's own outline again.

**The joined options' hairline takes its own pixel.** The line between
joined cells was each cell's 1px outer shadow cast over its neighbour,
so whichever cell painted later cut the other's edge: a single pick lost
half its bottom edge, and standing the pick above its neighbours only
moved the cut onto the upper of two adjacent picks in a `choose
multiple` group. The group now paints its ground in the rule colour and
lays its cells 1px apart, each cell painting its own ground. That
deletes `--lf-cell-rule`, the shadow on every cell and the reserve, and
the `z-index` on the picked, keyboard-ringed and add rows. The
laid-across column floor subtracts each column's share of the gaps
(swept 700–1800px in Chromium and Firefox: never a 2+1 split), and the
reserve for a missing Add and Done counts the gap between them.

Changed behavior: a joined group grows 1px per hairline, and cards laid
across are each about 1px narrower.

Tests: an `m` arrival on an ask draws one ring (`test_rings`); a picked
cell's ring is equally thick on all four sides in both joined forms,
with two adjacent rows picked (`test_render_options`). Each fails with
its fix removed, and the ring-thickness test also fails against the
earlier `z-index` fix. Tests that read the shadow mechanism now read the
gap and the grounds either side of it.

Not caused by this change, failing on main too:
`test_a_card_group_taking_a_pick_reads_as_one_control`,
`test_a_group_of_bare_labels_reads_as_a_question_about_the_page` (option
marks computing `font-size: 0`),
`test_a_quoted_widget_exhibits_without_taking_input`, and
`test_a_focused_card_comment_never_paints_over_the_cards_contents`.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

Browser contour tests still read source outlines after projected bracket change

1 participant