WCAG 2.3.2: Three flashes
WCAG (Web Content Accessibility Guidelines) 2.3.2, known as „Three Flashes,” is a Level AAA success criterion focused on preventing content that flashes too rapidly or intensely. Its primary goal is to protect users with photosensitive epilepsy and other seizure disorders from the risks associated with certain types of flashing or strobing content on web pages.
Why This Criterion Matters
Flashing or strobing content can trigger seizures in individuals with photosensitive epilepsy. These seizures can range from mild disorientation to severe convulsions, posing significant health risks. Beyond epilepsy, rapid flashing can cause discomfort, headaches, and migraines in a wider range of users, including those with vestibular disorders or general light sensitivity. Ensuring content adheres to this criterion is crucial for creating a safe and inclusive web environment for everyone.
Affected User Groups:
Understanding Success Criterion 2.3.2
The criterion states: „Web pages do not contain anything that flashes more than three times in any one-second period, or the flash is below the general flash and red flash thresholds.”
This means you have two main ways to comply:
The definition of a „flash” involves a pair of opposing changes in relative luminance (light to dark, then dark to light, or vice-versa) that result in a significant contrast change. The thresholds are complex to measure precisely without specialized tools, making the „three flashes or less” rule the most practical compliance strategy.
Practical Guidelines for Compliance
To ensure your web content complies with WCAG 2.3.2, consider the following guidelines:
Examples of Correct and Incorrect Implementations
Incorrect Implementation: Rapid Flashing Alert (Exceeds 3 flashes/second)
This example demonstrates an alert box that flashes 5 times per second, which exceeds the allowed threshold and could trigger seizures.
HTML
CSS
JavaScript (Not directly used to control flash, but to demonstrate context)
Correct Implementation: Subtle, Slow Alert (Within 3 flashes/second)
This alert flashes once every second, clearly staying within the three-flashes-per-second limit. It also uses a less intense color transition.
HTML
CSS
JavaScript
Incorrect Implementation: Large Red Flashing Background
Using a large area of saturated red that flashes, even if at a slower rate, is highly problematic due to the strict red flash threshold and overall area size.
HTML
CSS
Correct Implementation: Alternative for Visual Emphasis
Instead of flashing, use other visual cues like a continuous glow, pulsing without significant luminance changes, or subtle fade effects to draw attention.
HTML
CSS
Best Practices and Common Pitfalls
Best Practices:
Common Pitfalls:
Adhering to WCAG 2.3.2 is not just about compliance; it’s about protecting the health and well-being of your users. By carefully considering the impact of flashing content and implementing safe alternatives, you contribute to a more accessible and inclusive web for everyone.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat