Repository navigation
Count a control's reach in the corpus's aim sweep, as the layer's sweep does - #3297
Merged
Merged
Conversation
…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]>
leaf-agent
approved these changes
Oct 20, 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.
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::beforestretches 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.pyalready counts an absolutely positioned::beforeor::afteras part of a control's target. The corpus sweep read the box alone. Both now read one control's aim throughtests/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.