ContrastChecker: audit font size logic #8614
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Follow up to #8059 /Cc @jorgefilipecosta
I may be wrong but seems to me the font size check is based on pixels and not points. Please notice that the WCAG requirement refers to points, not pixels. Reference:
https://www.w3.org/TR/WCAG21/#contrast-minimum
"Large scale text" is defined in points, not pixels:
https://www.w3.org/TR/WCAG21/#dfn-large-scale
So, calculating the actual point size may depend on various conditions. However, it's an (more or less) accepted practice to use 24 pixels and 18.5 pixels as values. This is explained in the WCAG "Understanding Success Criterion 1.4.3: Contrast (Minimum)":
https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
Since it would be impossible to use a value in points, the current pixels value of
18
should be changed to24
.The text was updated successfully, but these errors were encountered: