Skip to content

Narrow the corner rule's last sentence to boxes that meet an edge - #6877

Merged
max-sixty merged 1 commit into
mainfrom
thread-reply-box-padding
Nov 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
thread-reply-box-padding

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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-clear or more, keeps the corners its kind takes under tokens.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).

This was written by Claude Code on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit b92a618 into main Nov 23, 2026
6 checks passed
@max-sixty
max-sixty deleted the thread-reply-box-padding branch November 23, 2026 16:39
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.

2 participants