Guide10 min read

Regression testing and WCAG accessibility: Why they are inseparable

Link between regression testing and WCAG accessibility. Detect contrast, text size, focusable element regressions before users do.

Contents
  1. The invisible link between visual regressions and accessibility
  2. How visual regressions break WCAG compliance
  3. The WCAG criteria most vulnerable to visual regressions
  4. Why accessibility tools alone are not enough
  5. Why visual testing alone is not enough either
  6. The complementary strategy: visual testing plus accessibility audit
  7. Building visual testing into your WCAG compliance approach
  8. FAQ
  9. Conclusion

Visual testing: a software verification technique that automatically compares screenshots of a user interface between two versions in order to detect any unintentional visual difference.

Web accessibility and visual testing are too often treated as two separate disciplines. On one side, accessibility teams verify WCAG compliance with tools like axe or WAVE. On the other, QA teams use visual testing to detect interface regressions. These two worlds rarely talk to each other.

That is a mistake. And this article will explain why every undetected visual regression is potentially an accessibility violation in production.

The essentials on one page: definition, no-code automation, a grid for choosing a tool: Automated, no-code regression testing.

Imagine the following situation. Your front-end team updates the design system. Colors are adjusted, typography evolves, some spacings are modified. The deployment passes the unit tests, the integration tests, and even the end-to-end tests. Everything is green.

Except that the text contrast ratio on the action buttons has gone from 4.8:1 to 3.9:1. WCAG criterion 1.4.3 (Minimum Contrast) requires a ratio of at least 4.5:1 for normal text. Your site just became non-compliant, and nobody detected it.

This scenario is anything but hypothetical. According to a WebAIM analysis of one million home pages in 2025, insufficient contrast remains the most common accessibility error, present on 81% of the pages analyzed. A significant proportion of these violations did not exist when the site launched: they appeared gradually, introduced by successive visual updates.

Visual testing detects this kind of change. An accessibility audit tool like axe verifies the compliance of the result. Both approaches are necessary, and neither replaces the other.

How visual regressions break WCAG compliance

Visual regressions are not mere aesthetic problems. When an unintentional visual change reaches production, it can directly affect the experience of users with disabilities. Here are the most common mechanisms.

Degraded contrast

Contrast is the accessibility criterion most fragile in the face of visual regressions. A palette update, a background change, a color modification in a reusable component: any of these changes can push a contrast ratio below the WCAG threshold without anyone noticing.

The problem is amplified by modern design systems. When you modify a primary color CSS variable, the change propagates to hundreds of components. Visual testing captures this drift: if a button's color changes, the comparison flags it. The accessibility audit then confirms whether the new contrast is compliant.

Modified text size

WCAG criterion 1.4.4 (Resize Text) requires that text can be enlarged up to 200% without loss of content. A regression that reduces the text size from 16px to 14px in a critical component may seem minor. No functional test will break. But for a user with low vision, this difference can make an element unreadable without zooming.

Visual testing detects this kind of change because it renders the page in a real browser and compares the visual result to the reference. A reduction in size, even a subtle one, changes the rendering and triggers an alert.

Shifted or hidden focusable elements

WCAG criteria 2.4.7 (Focus Visible) and 2.4.3 (Focus Order) ensure that keyboard users can identify the active element. CSS regressions can compromise this: a positioning change shifts an element off-screen, a z-index hides the focus indicator, an overflow: hidden truncates the focus ring.

These problems are sneaky because the HTML element is still technically focusable: but visually inaccessible. Functional tests pass, DOM audit tools pass, and yet the keyboard user can no longer interact properly.

Reduced spacing and click areas

WCAG criterion 2.5.8 (Target Size) requires interactive targets to be at least 24x24 CSS pixels. A regression that reduces a button's padding or brings two clickable elements closer together can violate this criterion. Visual testing spots these dimension changes that functional tests ignore.

The WCAG criteria most vulnerable to visual regressions

Not all WCAG criteria are equally exposed to visual regressions. Some are particularly fragile because they depend directly on the visual rendering of the interface.

WCAG 1.4.3 and 1.4.6: Minimum contrast and enhanced contrast. These criteria are the most directly affected by color changes. Every change to a palette, theme or UI component can create a violation.

WCAG 1.4.4: Resize text. Text size regressions and containers that don't adapt to zoom are visually detectable.

WCAG 1.4.10: Reflow. Content must be viewable without horizontal scrolling at 320 CSS pixels wide. A regression in the responsive design can silently break this criterion.

WCAG 1.4.11: Non-text contrast. Form field borders, icons and state indicators must maintain a 3:1 contrast ratio. These elements are often forgotten in manual audits but detectable by visual testing.

WCAG 2.4.7: Focus visible. The focus indicator must be visible. CSS regressions that remove or hide the focus outline are a classic.

WCAG 2.5.8: Target size. The dimensions of interactive elements are directly observable in screenshots and visual comparisons.

Why accessibility tools alone are not enough

Accessibility audit tools like axe-core, WAVE or Lighthouse Accessibility are indispensable. But they have structural limits when it comes to visual regressions.

They analyze the DOM, not the rendering. axe-core inspects the HTML and CSS, but the actual rendering depends on the interaction between HTML, CSS, JavaScript, fonts and viewport. A contrast that is compliant in the CSS can become non-compliant because of a background image or an overlay.

They don't compare versions. An audit tool tells you whether your page is compliant at a given moment, not whether it has regressed compared to the previous version.

They don't detect everything. Automated tools only detect about 30 to 50% of accessibility issues according to community estimates. Visual testing covers part of the remaining blind spot.

They are not designed for regression. axe checks absolute compliance, not relative regression. If your page already had violations, a new one drowns in the existing noise.

Why visual testing alone is not enough either

Let's be honest: visual testing also has its limits for accessibility.

It doesn't understand semantics. Visual testing reasons about the rendering, not the code. It doesn't know that a button that looks like a link is an accessibility problem. It doesn't check that ARIA attributes are correct, that images have alternative text or that forms have associated labels.

It doesn't test interactions. Keyboard navigation, screen reader behavior, tab order: these fundamental aspects of accessibility are not captured by a screenshot comparison.

It can generate noise. Not every visual change is an accessibility regression. A color change can be intentional and compliant. Visual testing flags the change, but it is up to you (or a complementary tool) to determine whether it affects accessibility.

This is precisely why the two approaches are complementary and not interchangeable.

The complementary strategy: visual testing plus accessibility audit

The real power emerges when you combine both approaches in an integrated workflow.

Step 1: visual testing as a safety net

Build visual testing into your CI/CD pipeline. On every pull request, capture screenshots of your key pages and compare them to the baseline. Any unintentional visual change is flagged before the merge.

Visual testing plays the role of change detector here. It doesn't judge compliance: it notes that something has changed and asks you to check.

Step 2: the accessibility audit as validation

When visual testing detects a change, the accessibility audit comes into play. The tool checks whether the new rendering is WCAG-compliant. If the contrast has changed, is it still above the threshold? If the text size was reduced, does the text remain legible at 200% zoom?

By combining the two, you get an accessible regression workflow: change detection by visual testing, then compliance validation by the accessibility audit.

Step 3: continuous monitoring

Beyond the CI/CD pipeline, set up regular monitoring of your pages in production. Visual regressions can be introduced by dynamic content, third-party dependency updates or server configuration changes that don't go through your standard deployment pipeline.

A weekly visual scan of your critical pages, coupled with a monthly accessibility audit, is a realistic safety net for most projects.

Building visual testing into your WCAG compliance approach

If you are convinced that visual testing strengthens your WCAG compliance, here is how to build it into your approach in practice.

Identify the critical pages: focus visual testing on pages with a high accessibility impact: home page, forms, checkout journeys, global navigation.

Define accessible baselines: your baseline must be a WCAG-compliant version. Audit and fix before you start visual monitoring, otherwise you will be comparing against a reference that is already non-compliant.

Set tight thresholds: for pages that are critical for accessibility, lower the visual test's tolerance thresholds. A 0.5% change on a button can correspond to a color change that breaks contrast.

Train people in dual reading: when a visual change is detected, ask two questions: "Is this change intentional?" and "Does it affect accessibility?". This dual reading is the key.

Delta-QA in this strategy

Delta-QA fits naturally into this complementary approach. As a no-code visual testing tool, it lets you capture and compare your pages without complex configuration. Combined with axe-core or WAVE in your pipeline, Delta-QA provides the visual change detection layer that accessibility audit tools lack.

Delta-QA's no-code approach is particularly relevant for accessibility teams who aren't necessarily developers. An accessibility lead can configure baselines and review visual regressions without writing a line of code, which democratizes visual testing within the organization.

FAQ

Can visual testing replace a WCAG audit?

No, and it shouldn't. Visual testing detects visual changes between two versions of your interface, but it doesn't verify WCAG compliance as a whole. Criteria related to HTML semantics, ARIA attributes, keyboard navigation and screen reader behavior completely escape visual testing. Use visual testing as a complement to your audits, not as a substitute.

Which WCAG criteria does visual testing help monitor?

Visual testing is particularly effective at monitoring visual criteria: contrast (1.4.3, 1.4.6, 1.4.11), text size (1.4.4), responsive reflow (1.4.10), focus visibility (2.4.7), and interactive target size (2.5.8). These are criteria whose compliance depends directly on the visual rendering and which are vulnerable to regressions introduced by CSS updates and design system changes.

How often should visual tests be run for accessibility?

The recommended practice is to run visual testing on every pull request in your CI/CD pipeline, and to complement it with a weekly production scan for critical pages. Visual regressions that affect accessibility must be detected before going to production, hence the importance of integration into the development flow.

Do tools like axe or WAVE detect visual regressions?

No. axe-core and WAVE analyze the DOM and CSS at a given moment to verify WCAG compliance. They don't compare two versions of the same page and don't detect changes between deployments. That is exactly the role of visual testing: noting that a rendering has changed and alerting the team so it can check whether the change affects compliance.

How do you integrate visual testing and accessibility audits in the same pipeline?

The most effective approach is to run visual testing first: it detects changes and blocks the pull request if a significant visual difference is identified. The accessibility audit (axe-core built into your end-to-end tests, for example) runs in parallel to verify the compliance of the current rendering. Both reports are reviewed together before the merge. Delta-QA for visual detection, axe-core for WCAG validation: it is a complementary pair that covers more ground than either tool on its own.

Is no-code suitable for visual accessibility testing?

Absolutely. No-code visual testing is even particularly relevant for accessibility because it makes the practice accessible to non-technical profiles. Accessibility leads, designers and product owners can configure baselines, review regressions and validate visual changes without depending on the development team. It is a lever for democratizing visual quality across the organization.

Conclusion

Visual testing and WCAG accessibility are not two separate disciplines: they are two sides of the same quality requirement. Every undetected visual regression is a potential accessibility violation. Every change of color, text size or spacing can affect users with disabilities.

Accessibility audit tools like axe and WAVE are indispensable, but they don't detect regressions between versions. Visual testing fills this gap by flagging any interface change before it reaches production.

The winning strategy is complementary: visual testing to detect, the accessibility audit to validate. Together, they build a safety net that protects both the user experience and regulatory compliance. And if you operate in several countries, check which legal obligations apply to you with our guide to WCAG testing by region (EU, US, Canada, UK).

Delta-QA lets you set up this visual detection layer without technical complexity. No-code, quick to configure, and designed to integrate with the accessibility tools you already use.

Try Delta-QA