-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Illegible font sizes reported for invisible text #16234
Comments
As I understand it, you are using I think an exception for invisible text makes sense, but I've never seen this use case before. |
Sorry if my use case is not clear. The two properties have independant purposes actually. I'm using And |
@adamraine "needs-discussion" with? about? |
Discussed briefly. We will adopt this and filter out any nodes which are invisible. We will need to add |
Cool, thanks for your feedback! |
FAQ
URL
https://luciole75w.github.io/demo/google-lighthouse/legible-font-size-issue.html
What happened?
In mobile mode / best practices category, Lighthouse reports "Document doesn't use legible font sizes" whereas the text in question is set invisible using css "visibility: hidden" (preferred over "display: none" due to transition issues).
The failed audit is reported only with more than ~40% of text considered illegible.
What did you expect?
Audit not failed since the "illegible" text is not exposed to users, neither through screen nor screen readers.
What have you tried?
Hiding the text with "display: none" instead of "visibility: hidden" works, but this css rule prevents transition effects (unless also relying on @starting-style which has limited browser support).
How were you running Lighthouse?
PageSpeed Insights, Chrome DevTools, web.dev
Lighthouse Version
12.2.1
Chrome Version
129
Node Version
No response
OS
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: