Semantic components and explicit contracts
Provide a small interface with generic clickable elements, unclear heading order, a wrapper around a native control, fallthrough attributes, multi-root output, slots, raw HTML, forms, async status and narrow content. Ask for one accessible task and an explainable component contract.
Confirm: The person starts with user meaning and native semantics; preserves landmarks, headings, labels, descriptions, reading and focus order; treats raw HTML as a trust boundary; uses props for declared inputs and emitted events for deliberate outputs; applies listeners and attributes to the intended native element; makes slot and composable contracts explicit; preserves keyboard behavior, visible focus, announcements, errors, content variation, zoom, reflow and reduced motion; and proves the task through the accessibility tree, keyboard use, suitable assistive technology and real browsers.
