Front-end education for the real world. Since 2018.





Testing flashing content for accessibility issues

Steve Frenzel

Topic: Accessibility

While I was studying for my DHS Trusted Tester certification, there was one section of the exam that particularly caught my attention: “Topic 3: Flashing.” This section covers how to evaluate flashing content on a website from an accessibility perspective. Here’s the part that made me raise an eyebrow (excerpt from the “Trusted Tester Training for Web 2025” course):

[…] The Trusted Tester process does not yet have a tool that can check if flashing content is within safe limits. Therefore, if flashing content is found, the Test ID is marked NOT TESTED. There are no options to mark this test as PASS or FAIL.

This led me to ask myself: How can people with seizure and vestibular disorders test this step? What about testers who are prone to headaches, dizziness, and nausea? Can automated tools take care of this task?

The success criteria in question

My questions each concern two test steps: SC 2.3.1 Three Flashes or Below Threshold (Level A) and SC 2.3.2 Three Flashes (Level AAA).

For Level A, the following techniques are suggested for testing:

  1. G19: Ensuring that no component of the content flashes more than three times in any 1-second period
  2. G176: Keeping the flashing area small enough
  3. G15: Using a tool to ensure that content does not violate the general flash threshold or red flash threshold

Since Level AAA is more strict, only technique G19 is recommended here. Level A also includes the following note:

Since any content that does not meet this success criterion can interfere with a user’s ability to use the whole page, all content on the web page (whether it is used to meet other success criteria or not) must meet this success criterion. See Conformance Requirement 5: Non-Interference.

This means that this test step is part of a “package” of three other test steps that are considered essential for using a website, namely:

  1. 1.4.2 - Audio Control
  2. 2.1.2 - No Keyboard Trap
  3. 2.3.1- Three Flashes or Below Threshold
  4. 2.2.2 - Pause, Stop, Hide

These criteria apply “to all content on the page, including content that is not otherwise relied upon to meet conformance, because failure to meet them could interfere with any use of the page”! So we’re talking a real deal-breaker here.

In addition, the general flash and red flash thresholds section provides very detailed instructions on how to identify and test flashing content, in case you’d like to explore this topic further.

In my search for answers, I’m not so much concerned with the technical aspect as with the human one. Nevertheless, it’s important to understand what this step is based on.

Who is affected by flashing content

This testing step primarily affects people with seizure and vestibular disorders. It is important to recognise that all forms and degrees of disability exist on a spectrum. What severely affects one person may be harmless to another.

People on the ADHD spectrum may also be affected by flashing content, as it can distract them and/or cause them to forget what they actually intended to do on the website. This happens to me often enough, even without anything flashing content! Other symptoms may include agitation, dizziness, headaches, or emotional distress.

The few ways to test content

The most reliable way to test this step seems to be manually. However, this is difficult, if not impossible, for people who are negatively affected by flashing content.

The analysis tool called PEAT that is designed to detect this. The question here, however, is to what extent affected individuals can use it at all, since they would first have to identify the relevant content, which would already expose them to a risk. Furthermore, the last update was in 2017, so it’s unclear how reliably it still works, along with being Windows-only.

After asking around on Mastodon, Eric Eggert said that he has his own process involving ffmpeg. Here, too, manual steps are necessary, which doesn’t necessarily simplify or standardise the process.

Last but not least, there are automated tools such as axe DevTools, ARC Toolkit, WAVE, IBM Equal Access Accessibility Checker, Siteimprove Accessibility Checker, which could help detect and analyse flashing content. Unfortunately, none of these tools were able to detect the flashing text on this website (trigger warning): Three Flashes Example.

Even though there is no standardised method for testing this step, we still have the option to either mitigate the problem or avoid it entirely.

Fixing or avoiding issues

There are several ways we can handle flashing content. The simplest is to avoid it entirely.

If that’s not possible, we must ensure that the content doesn’t flash more than three times per second. It’s also recommended to combine this with the CSS media feature prefers-reduced-motion so that user preferences are respected automatically without prompting.

Code language
css

/* No preference detected */
.animation {
  animation: pulse 0.1s linear infinite both;
}

/* Preference detected */
@media (prefers-reduced-motion: reduce) {
  .animation {
    animation: dissolve 4s linear infinite both;
  }
}

In addition, we must ensure that the area where flashing content is visible is not too large, in order to further reduce the risk. This is explained in detail in Technique G176: Keeping the flashing area small enough.

Wrapping up

As things stand now, I have unfortunately been unable to identify a way for people negatively affected by flashing content to reliably test this criterion without putting themselves at risk. Even when using analysis or automated tools, it is inevitable that one will come into contact with flashing content.

Even though this makes testing this step difficult or even impossible for those affected, we still have the option to reduce the impact of the problem or avoid it entirely. For example, flashing content can either be avoided entirely, or its frequency can be significantly reduced and confined to a small area.

Enjoyed this article? You can support us by leaving a tip via Open Collective


Newsletter

About