F24 · c02: White foreground without background declaration
Corpus WCAG 2.2Applies to WCAG 2.0, 2.1, 2.2Level AA, AAAAutomatable: yes
Summary: specifying white foreground color without a background color on a white page
Why it fails: Low-vision users cannot read the notice because white text on the default white page background falls below minimum contrast.
Failure technique
Understanding
Quickref
Intentional failure — audit this region
F24 · c02
White foreground text with no background color declared on this element.
<p class="f24c02-text">White foreground text with no background color declared on this element.</p>Expected audit result
- 1.4.3: fail — Specimen demonstrates an alternate F24 failure of 1.4.3 using undeclared background with white text.
- 1.4.6: fail — Specimen demonstrates an alternate F24 failure of 1.4.3 using undeclared background with white text.
- 1.4.8: fail — Specimen demonstrates an alternate F24 failure of 1.4.3 using undeclared background with white text.
Manual check: Confirm the element sets color: #fff with no background-color on itself or a contrasting ancestor.