---
title: "Improving Web Accessibility with Web Platform Tests"
description: "Web Platform Tests (WPT) let one automated accessibility test run across Chromium, Gecko and WebKit, verifying that browsers compute the expected accessibility role and label for DOM elements."
url: "https://swe.quest/articles/improving-web-accessibility-with-web-platform-tests-148dfde58f51d394"
canonical: "https://webkit.org/blog/15400/improving-web-accessibility-with-web-platform-tests/"
source: "WebKit"
published: "2024-06-06"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 5
tags: ["accessibility","testing","browsers"]
---

# Improving Web Accessibility with Web Platform Tests

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-06-06, 5 min read, Opinion. Original: [https://webkit.org/blog/15400/improving-web-accessibility-with-web-platform-tests/](https://webkit.org/blog/15400/improving-web-accessibility-with-web-platform-tests/)

## Summary

Web Platform Tests (WPT) let one automated accessibility test run across Chromium, Gecko and WebKit, verifying that browsers compute the expected accessibility role and label for DOM elements. Tests are plain HTML with data-\* hooks such as data-expectedrole and data-expectedlabel, executed by testharness.js with WebDriver fetching browser-computed accessibility metadata, and run daily in CI with results published to the interop dashboard. Beyond catching cross-browser discrepancies and regressions, such tests have exposed specification ambiguities, such as in accessible name node traversal, prompting fixes across all engines.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- HTML and ARIA basics
- accessible name and role concepts

## Keywords

Web Platform Tests, Interop Accessibility, WebDriver, testharness.js, ARIA, WebKit, HTML-AAM

## Related posts

- [Automated Accessibility Testing at Slack](https://swe.quest/articles/automated-accessibility-testing-at-slack-ada6bed3cb3ffab2.md): Slack Engineering · 2025-01-07 · Medium · 12 min read · Accessibility, Testing, Frontend, CI/CD
  Slack added automated accessibility checks to its desktop end-to-end tests by integrating Axe into Playwright via @axe-core/playwright, after embedding checks in Jest/React Testing Library proved impractical with its custom Jest setup.
- [Continuous AI for accessibility: How GitHub transforms feedback into inclusion](https://swe.quest/articles/continuous-ai-for-accessibility-how-github-transforms-feedback-into-inclusion-c36ff177f3a2d142.md): GitHub Engineering · 2026-03-12 · Medium · 14 min read · Accessibility, AI agents, LLMs, CI/CD
  GitHub built an event-driven accessibility feedback pipeline on GitHub Actions, Copilot and the GitHub Models API that turns every user report into a tracked, prioritized issue.
- [Accessibility Insights for Windows](https://swe.quest/articles/accessibility-insights-for-windows-b9d389a54b09a2fc.md): Engineering@Microsoft · 2021-12-13 · Medium · 5 min read · Accessibility, Developer tools, .NET, Testing
  Accessibility Insights for Windows is an open-source .NET/WPF tool built on Microsoft's UI Automation framework for finding and fixing accessibility issues in Windows apps.
- [Announcing Interop 2026](https://swe.quest/articles/announcing-interop-2026-a3e8081bc8eed188.md): WebKit · 2026-02-12 · Easy · 14 min read · Browsers, CSS, Frontend
  Interop 2026 brings Apple, Google, Igalia, Microsoft and Mozilla together for a fifth year to align browser implementations on twenty focus areas measured by Web Platform Tests.
- [How we raised mobile end-to-end test stability to 98%](https://swe.quest/articles/how-we-raised-mobile-end-to-end-test-stability-to-98-ca68fcd3c9f171ff.md): Shopify Engineering · 2026-08-12 · Medium · 6 min read · Testing, Mobile, CI/CD, Computer vision, React
  Shopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
