Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

px to pt conversion issue #76

Open
nazjunaid opened this issue Apr 28, 2021 · 0 comments
Open

px to pt conversion issue #76

nazjunaid opened this issue Apr 28, 2021 · 0 comments

Comments

@nazjunaid
Copy link

nazjunaid commented Apr 28, 2021

According to wcag for large text bold you need to be at least 14pt = 18.5px

https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html#visual-audio-contrast-contrast-73-head

This tool defines 18px as a success due to way it rounds however google lighthouse/axe marks it a fail since 13.5pt isn't 14pt

WCAG's own documentation states

The ratio between sizes in points and CSS pixels is 1pt = 1.333px, therefore 14pt and 18pt are equivalent to approximately 18.5px and 24px.

So based on this I don't think the tool should round 13.5pt to 14pt since it's a WCAG fail.

nazjunaid pushed a commit to nazjunaid/accessible-colors that referenced this issue Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant