Skip to content

Make face-or-reach one fact the aim floor reads from the reach's list - #3909

Merged
max-sixty merged 2 commits into
mainfrom
agent-a0bd892158a761e74
Oct 25, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-a0bd892158a761e74

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The aim floor kept two selector lists: one for the inline floor, and one for the block floor that had to exclude by hand every offered control meeting the block floor with a reach instead (.lf-btn, .lf-msg-control). A control missing from those exclusions got both a 44px face and a reach; that is how message controls stood 44px tall in a 28px head, fixed one entry at a time in #3748.

Now the reach rule sets --lf-face-floor: auto (registered with @property, not inherited), and a single floor rule states both floors, with min-height: var(--lf-face-floor, var(--aim-floor)). Whether a control is on the reach's list decides which of the two meets its block floor, so a pressable offer gets a floor-tall face unless it hangs a reach, and can no longer get both. The block-axis list and its exclusions are gone, and the render gate's AIM_FLOOR_RULE reads the merged rule.

No behaviour changes. The computed min-width, min-height, size, position and ::after box of 5,842 controls per pointer (143 families, 38 corpus states, fine and coarse) are identical before and after, apart from scroll and unread-dot ordering noise. The aim sweeps report the same findings on the base and on the change across 48 runs, and Firefox matches the base.

After merging main, pnpm run check:browser confirms the committed sheets match their sources, and the corpus gate (tests/journeys/test_render_gate.py::test_the_layer_holds_its_whole_page_rules_on_the_corpus) and tests/journeys/test_render_controls.py::test_every_control_the_layer_offers_is_a_box_the_user_can_hit (fine and coarse) pass on the merged branch.

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

max-sixty and others added 2 commits October 23, 2026 18:16
The aim floor kept two selector lists: one for the inline floor and one for
the block floor, which had to exclude by hand every offered control that
meets the block floor with a reach instead (`.lf-btn`, `.lf-msg-control`).
Missing one entry stood message controls 44px tall in a 28px head (#3748).

Now the reach rule sets `--lf-face-floor: auto` (registered, not inherited),
and one floor rule states both floors, reading
`min-height: var(--lf-face-floor, var(--aim-floor))`. Membership in the
reach's list is the single fact: a pressable offer gets a floor-tall face
unless it hangs a reach, and can no longer get both. The block-axis list and
its exclusions are gone. The gate's `AIM_FLOOR_RULE` follows the merged rule.

No behaviour changes. Computed min-width, min-height, size, position and
`::after` box of 5,842 controls per pointer (143 families, 38 corpus states,
fine and coarse) are identical before and after, apart from scroll and
unread-dot ordering noise; the aim sweeps report the same findings on HEAD
and the change in 48 runs, and Firefox matches HEAD.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 8537145 into main Oct 25, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-a0bd892158a761e74 branch October 25, 2026 05:28
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