Form Labels That Survive Autofill: Why Floating Labels Fail Checkout
Autofill is where checkout forms quietly break for disabled shoppers. A floating label design looks clean in a screenshot: the label sits inside the empty field and shrinks upward when you type. Then the browser autofills the whole address block in one click. Fields fill without ever receiving focus, labels collide with values or disappear, and a screen reader or a low vision shopper is left checking data against labels that are no longer readable.
WCAG 2.2 speaks to both halves of this. Criterion 3.3.2, Labels or Instructions, requires labels for user input. Criterion 1.3.5, Identify Input Purpose, expects the purpose of common fields to be programmatically determinable, which in practice means the HTML autocomplete attributes browsers use to fill them.
What autofill actually does to your labels
When Chrome or Safari autofills, it populates fields as a group. Any label behaviour tied to focus or to a typed first character misfires. Placeholder text used as the only label disappears the moment a value lands, and WebAIM's annual Million report keeps finding missing form labels among the most common home page errors it scans, year after year. Checkout pages inherit the same defect with money attached.
The audit is simple. Open your checkout in a fresh profile, save a test address, return, and let the browser autofill. Screenshot the result. Every field whose label you cannot still read at a glance is a 3.3.2 risk and a conversion leak for every shopper, disabled or not.
The fix is boring, which is the point
Put a persistent text label above each field, keep it there in every state, and add the standard autocomplete tokens: name, street-address, locality, region, postal-code, country, email, tel. The tokens are what let autofill, password managers and assistive technology agree on what a field is. A form that identifies its fields properly gets faster for everyone.
Resist the urge to fix this with an overlay widget. The compliance problem here is native HTML semantics, and native HTML is where the fix belongs. Test afterwards with a screen reader pass and a keyboard only pass, because the label you can see still has to be the label that is announced.
Related reading
These earlier guides go deeper on connected questions: The Skip Link on the Cart Page: Where It Should Actually Land, The Checkout Error Summary: Put the List at the Top and Link Every Error, and Checkout Timeout Warnings: Warn Before the Session Eats the Cart.
Frequently asked questions
Are floating labels always an accessibility failure?
Not automatically, but they fail often in practice. If the label remains visible and programmatically associated in every state, including after autofill, it can pass. Most implementations shrink the label to a size low vision users cannot read, or lose it entirely on autofill.
Which autocomplete values matter most at checkout?
The address and identity set: name, street-address, address-level2 for city, address-level1 for state or region, postal-code, country, email and tel. These are the tokens WCAG 1.3.5 references through the HTML autocomplete list.
Does using placeholder text as a label fail WCAG?
Placeholder-only labelling is a well known failure pattern. The placeholder disappears on input, is often too low in contrast, and is not reliably exposed as the field's accessible name. A persistent visible label is the safe pattern.
How do I test my checkout form the way an auditor would?
Autofill a saved address, tab through with the keyboard only, then run the form with a screen reader and check that every field announces its label and purpose. Finish by submitting with one deliberate error and confirming the error is described in text.