Repository navigation
Keep the ring round an ask in a margin card whole - #5819
Merged
Merged
Conversation
Next On Me (`m`) focusing an ask's options in a margin card drew its ring with the whole right side missing and the foot of its corners cut, in Firefox and Chromium alike. The ring stands a region's gap outside the block: 6px out and 2px wide, so it reaches 8px. The card's transcript kept 6px past its edges, `max(--focus-ring-room, --lf-group-ring-end)`, which a control's 5px ring fit. #4732 moved every mark on a region from a control's 3px gap to 6px, and the transcript's room stayed where it was, so the whole 2px band fell past the transcript's padding edge. The transcript now keeps a region's room (`--focus-region-room`, 8px). It takes it from the card's inset as before, so the words keep their place: stills of every margin card state at rest (plan-card, its keyboard, reply, aging and resolved forms, ship-card-message-keyboard, ship-thread-open and ship-option-thread-open) show 0 px changed in Chromium and Firefox. The chrome.css header said every scroll region reserves `--focus-ring-room`, which stopped covering a region's marks at #4732. It now says a scroll region pads its edges by the room of the widest ring it holds. Tests: a new margin card test lands Next On Me on a reply's options and reads their location ring whole; it fails without the fix (right and bottom edges 2px outside the transcript). The card-head fade test scrolled the transcript's box edge, rather than the slot where heads stick, to the middle of the gap between two messages. The slot stands one transcript room below that edge, so with the wider room it met the next head; it now aims the slot itself, and passes with either room. `leaf-dev stills` gains `ship-card-ask-keyboard`, the first `m` arrival in ship-review, which lands on an ask in a card.
leaf-agent
previously approved these changes
Nov 11, 2026
# Conflicts: # tests/browser/margin/test_card_reply.py
…ns queued with no jobs
leaf-agent
approved these changes
Nov 11, 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.
Next On Me (
m) focusing an ask's options in a margin card drew its location ring with the whole right side missing and the foot of its corners cut, in Firefox and Chromium. The ring stands a region's gap outside the block (6px) and is 2px wide, so it reaches 8px; the card's transcript kept 6px past its edges (max(--focus-ring-room, --lf-group-ring-end)), so the whole band fell past the transcript's padding edge on the right. The room fit when it was set, at a control's 3px gap; #4732 moved every mark on a region to 6px and left the transcript's room where it was.The transcript now keeps
--focus-region-room(8px). It takes the extra 2px from the card's inset as before, so the words keep their place:leaf-dev stillsof every margin card state at rest shows 0 changed pixels in Chromium and Firefox, and only the newship-card-ask-keyboardstate (ship-review's firstmarrival, an ask in a card) changes, where the ring becomes whole. Thebrowser/runtime/chrome.cssheader, which said every scroll region keeps a control's room, now says a scroll region pads its edges by the room of the widest ring it holds.Tests: a margin card test lands
mon a reply's options and reads their ring whole; it fails without the fix (right and bottom edges 2px outside the transcript).test_the_thread_card_opens_on_its_latest_message_under_its_own_namescrolled the transcript's box edge to the middle of the gap between two messages, where it meant the line heads stick on; that line stands one room below the edge, so the wider room put it on the next head. The test now aims at the line and passes with either room.Bounded blocks, the case #4125 holds open, still keep no room at their sides; this change doesn't touch them.