About
What this site is
The WCAG Encyclopedia explains every Level A and AA success criterion of WCAG 2.2 in plain language, and shows each one broken and then fixed, so you can see what goes wrong before you read why.
It is written for the people who build interfaces: developers with an audit finding to resolve, designers checking a palette, and anyone who wants to know what a criterion asks for without reading the specification first. Each criterion has its own page with a stable address you can paste into a ticket.
The explanations are our own words, not the W3C's. When a decision matters, read the criterion's normative text on w3.org as well. The site documents the criteria; it does not audit your pages or certify conformance.
Accessibility statement
This site aims to meet WCAG 2.2 at Level AA on every page, in the light and the dark theme, from 320px wide upwards. It holds itself to the four commitments below.
This site meets the criteria it explains.
A site about accessibility that fails it would be worse than no site at all. Every page is checked before it ships, and the broken examples are fenced off so they cannot trip anyone up.
- Checked on every releaseEach page is scanned against WCAG 2.2 AA before deploy. A failure blocks the release.
- Keyboard firstEvery demo works without a mouse, and focus is always visible.
- Broken examples are labelledEach failing exhibit is described in text, so a screen reader hears what is wrong instead of the mess itself.
- Motion is optionalAnimations stop when your system asks for reduced motion.
How we test
Every claim above is checked by the same command, npm run verify, which runs on every change and again before each release. If any check fails, nothing is published.
Checked on every release
An axe scan visits every built page in both themes and at 320px, against WCAG 2.0, 2.1 and 2.2 at Levels A and AA plus axe’s best-practice rules. It allows zero violations, and it also fails a page that scrolls sideways at 320px.
axe cannot measure the contrast of borders, so the token contrast audit covers colour: a unit test that measures every pairing of text and surface colours in both themes and requires 4.5:1 for text and 3:1 for control borders, focus rings and graphics.
Keyboard first
On every page the scan moves focus to each link and button and fails if any of them shows no focus outline. A test also checks that “Skip to content” is the first thing the Tab key reaches and that it moves to the main content.
Broken examples are labelled
Elements that show a failure on purpose are the only things the axe scan leaves out, and a test fails if any of them sits outside a Broken example. The colours they use are audited the other way round: if one ever started to pass, the build would break. Failing sample text is hidden from screen readers and described in words instead.
Motion is optional
When your system asks for reduced motion, transitions and smooth scrolling are switched off, and animated demos wait for you to press Play. A browser test checks that the demos do not start on their own under that setting.
Automated checks find a lot, but not everything. A form for reporting problems with the site is on its way.