Repository navigation
Narrow the corner rule's last sentence to boxes that meet an edge - #6877
Merged
Merged
Conversation
browser/AGENTS.md said a box standing clear of every edge "is rounded all round". Read literally, that flagged 68 boxes Leaf draws square or round on purpose: 21 list rows and their rings, which "a box edged on one side is never rounded" squares; 33 region rings, fills and highlights; 5 dots and pills round by meaning; 5 sliding thumbs; and 4 runs of joined diff files. It also contradicted the rule beside it. A box that stands clear, by --lf-clear or more, now keeps the corners its kind takes under tokens.css's corner scale. So does a thumb along its track or a mark round by meaning, wherever it stands, and boxes joined at seams count as one box. The rule's first half, for a box that meets its frame's edge, is unchanged. The heading keeps its words, so the comments in tokens.css, controls.css and floating-panel.css that cite it still match. Max picked this wording on the reply-box-edges page, from the survey behind #6812. A scratch A/B with Sonnet over five cases, two runs per arm, matched the old version on a box meeting an edge and on joined runs, and beat it on a 2px near-miss (2 of 2 against 1 of 2) and on a thumb 2px inside its track (1 of 2 against 0 of 2). The thumb's miss read the picked wording's "as does a thumb" as covering only a thumb standing clear, so the thumb took a sentence of its own ending "wherever it stands"; three runs of it then got the thumb, the near-miss and list rows right in 3 of 3.
leaf-agent
approved these changes
Nov 23, 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.
Narrows the last sentence of
browser/AGENTS.md's rule "A box inside a frame either meets its edge or stands clear of it". It said a box standing clear of every edge "is rounded all round", which, read literally, flagged 68 boxes Leaf draws square or round on purpose (list rows and their rings, region rings and fills, dots and count pills, sliding thumbs, runs of joined diff files) and contradicted "a box edged on one side is never rounded" beside it. Now a box that stands clear, by--lf-clearor more, keeps the corners its kind takes undertokens.css's corner scale; so does a sliding thumb or a mark round by meaning, wherever it stands; and boxes joined at seams count as one box. The half for a box that meets its frame's edge is unchanged, and the heading keeps its words, so the comments citing it still match.The survey behind #6812 found the 68; Max picked this wording on the page that reported it, and the wording's one change since is a split sentence (below).
In a scratch A/B, Sonnet answered five cases from each version of the passage, twice each. Both versions got the box that meets an edge right. The new one handled the run of joined files as one box in 2 of 2 (old: 2 of 2 by way of the segmented-group rule), a 2px near-miss in 2 of 2 (old: 1 of 2), and a thumb 2px inside its track in 1 of 2 (old: 0 of 2). The thumb miss read "as does a thumb" as applying only to a thumb standing clear, so the thumb now takes a sentence of its own ending "wherever it stands". With that sentence, three more runs each kept the thumb's shape (3 of 3), fixed the near-miss (3 of 3) and gave list rows their kind's corners, squaring a striped row by the rule beside it (3 of 3, as the old version did).