Repository navigation
fix: read projected brackets in browser contour tests - #4322
Merged
Merged
Conversation
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]>
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.
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