Repository navigation
test: measure usable control targets at their actual reach - #4987
Merged
Merged
Conversation
leaf-agent
commented
Nov 1, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
Withholding the verdict under the PR description's explicit hold: the remaining target-size failures need diagnosis and repair before landing. Running both pointer cases reproduced the reported results after preview visibility and surface coverage passed: the fine-pointer case reports the v1 row at 0×0 under .lf-fp-face, and the coarse-pointer case reports “Select mode” at 87.3×20.3 under .lf-ui.
The layer sweep requires an independent minimum-size target, rather than every point of a wider row's face: Compare intentionally owns the version row's end. Keep the full-face reading for callers that request no floor. An absolute hit-area pseudo-element can belong to an ancestor instead of its label. Read its origin from the containing block and computed insets, so a command with a description underneath is not tested above its row. Keep the label's centre on axes where the face already meets the floor, and reject a covered centre. Both pointer cases failed at the old head and pass with this measurement. Temporary negative controls detect a covered version target and a command whose touch reach is removed. No runtime or target floor changes. Refs #4927
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 control-size sweep now reaches preview diagnostics through About this page, following #4895, and measures the usable target each control offers. Both pointer cases failed before this repair and pass afterward. The 24px and 44px floors stay the same.
The remaining failures were in the probe: it rejected a wide version row because Compare intentionally owns its end, and it assumed a command's row-wide hit area was centred on its label even when a touch description stood below it. The probe now checks the central minimum-size portion of a wider face and locates an expanded hit area from its containing block and computed insets. A covered centre still fails. This changes test measurement only.
Validation: both cases of
test_every_control_the_layer_offers_is_a_box_the_user_can_hitpass, as doestest_the_add_field_previews_the_option_it_will_make, which consumes the shared aim measurement. Temporary negative controls also pass: expanding Compare across the fine-pointer version target is detected, and removing the coarse-pointer command's hit-area pseudo-element is detected. Pre-commit checks andgit diff --checkpass.Closes #4927.