alphagov / accessibility-tool-audit

Automated accessibility tools audit
https://alphagov.github.io/accessibility-tool-audit/
MIT License
80 stars 30 forks source link

"Large text" in colour contrast cases is not sufficiently large #51

Closed kasperisager closed 3 years ago

kasperisager commented 4 years ago

The "large text" in the following two colour contrast test cases...

...is not sufficiently large to be considered "large scale" from a WCAG perspective: https://www.w3.org/TR/WCAG/#dfn-large-scale. The WCAG definition of "large scale" requires that text is at least 18 point or 14 point bold; be observant of the units here, because point ≠ pixel. Per the CSS Values and Units Module specification (https://drafts.csswg.org/css-values/) 1 pixel is equivalent to 0.75 points, meaning that the font size of 20 pixels used for the "large text" is only 15 points.