audit_tap_targets
Audits interactive elements on web pages to identify tap targets smaller than 44px, then outputs per-element CSS fixes sorted by severity.
Instructions
WCAG 2.5.5 / Apple 44pt tap-target audit for the web. Collects every interactive element (a, button, [role=button], input[type=submit/button/checkbox/radio], select, summary, label[for], [onclick], [tabindex>=0]) and emits a PER-ELEMENT fix table for any whose rendered width or height is below the minimum (default 44px): selector, role, visible text, measured w/h, pixel deficit per axis, and a concrete CSS fix. Sorted worst-first. Two modes: pass url (renders in headless chromium, measures real getBoundingClientRect) or pass elements[] snapshot (pure, no browser).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to render and measure. Requires headless chromium. | |
| minSize | No | Minimum tap-target size in px on each axis. Default 44. | |
| elements | No | Pre-collected interactive elements to score without rendering. |