Skip to main content

TARGET_LEAST

Constant TARGET_LEAST 

Source
pub const TARGET_LEAST: Step;
Expand description

The least a pointer target may measure on a side.

WCAG 2.5.8 and the Macintosh HIG both put the floor at 24 CSS pixels, which is Step::Broad at the default base. Named rather than written as a number so a renderer spends the scale it already has: a second 24 in the system is a second thing to keep in step with the first.

This is a floor on the contact patch, not on the type. Growing the text to reach it is the wrong fix and belongs to nobody: see wiki typography-standard, which owns the sizes.

Two things it deliberately does not say. It is not density-aware: a finger wants nearer 44, and expressing that needs Density threaded through the emitters, which they do not take today. And it does not reach a link inside running prose, which must not grow, because a floor applied to every inline anchor would set the leading of any paragraph carrying one.