Skip to content

Count a control's reach in the corpus's aim sweep, as the layer's sweep does - #3297

Merged
max-sixty merged 2 commits into
mainfrom
agent-ac90048b8da2fcf56
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-ac90048b8da2fcf56

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The corpus's whole-page sweep (tests/journeys/test_render_gate.py::test_the_layer_holds_its_whole_page_rules_on_the_corpus) failed on main: under a finger, eight draft toolbar marks measured 44x26 against the 44px aim floor. Since #3225 a draft's Edit and Copy marks are drawn 26px tall over the box's bottom border, and a ::before stretches each target to 44px. Drawing the marks 44px tall instead would put a 48px toolbar across the border and over the last line's words on a phone.

The reach is real. Hit-testing 21.5px above and below each mark's middle lands on the mark under touch in Chromium and Firefox, and 23px out lands elsewhere.

The layer's control sweep in test_render_controls.py already counts an absolutely positioned ::before or ::after as part of a control's target. The corpus sweep read the box alone. Both now read one control's aim through tests/page_scripts/aims.js, which also skips a pseudo that takes no presses. With the draft's reach set to zero, the corpus sweep still names the eight marks.

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

max-sixty and others added 2 commits October 20, 2026 02:03
…ep does

The corpus's whole-page sweep failed on main: under a finger, eight
draft toolbar marks measured 44x26 against the 44px aim floor. Since
#3225 a draft's Edit and Copy marks are drawn 26px tall over the box's
bottom border, and a ::before stretches each target to 44px. Drawing
the marks 44px tall instead would put a 48px toolbar across the
border and over the last line's words on a phone.

The reach is real. Hit-testing 21.5px above and below each mark's
middle lands on the mark under touch in Chromium and Firefox, and
23px out lands elsewhere.

The layer's control sweep in test_render_controls.py already counts an
absolutely positioned ::before or ::after as part of a control's
target. The corpus sweep in test_render_gate.py read the box alone.
Both now read one control's aim through tests/page_scripts/aims.js,
which also skips a pseudo that takes no presses. With the draft's
reach set to zero, the corpus sweep still names the eight marks.

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