Fluid typography does not scale up to 200% - Fails 1.4.4 Resize text Level AA #43488
Labels
[Feature] Typography
Font and typography-related issues and PRs
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Description
This was first brought up in the comments in this article https://make.wordpress.org/themes/2022/08/15/testing-and-feedback-for-the-fluid-typography-feature/
I can confirm, I tested this with FSE, latest gutenberg version. I added the new fluid keys, while they work great for responsiveness the text actually shrinks the more you zoom in on chrome. When not using clamp this does not happen and text grows up to 200%.
https://www.w3.org/WAI/WCAG21/quickref/?showtechniques=144#resize-text
Unfortunately there is no zoom api that can be implemented to switch off fluid typography and automated accessibility scanning tools won't pick up on this either.
There is a github issue related to this w3c/csswg-drafts#6869
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Chrome 500% zoom.
h2 no clamp set as 2rem.
h2 clamp max set as 2rem and min as 1.5rem.
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: