-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Mobile test should also emulate having a coarse
pointer device.
#15885
Comments
During a Lighthouse run with mobile emulation enabled, I am seeing |
Ah I see. I can reproduce using Lighthouse in DevTools but I'm not seeing the issue with Lighthouse CLI |
Thank you for checking again! |
I made a minimum repro and filed an upstream bug in chrome: |
Thank you for taking the time to make the repro and filing the upstream bug 🙇 It's fine to close this, I can track the upstream issue :) |
Currently
@media (any-pointer: coarse) {}
is false when running a mobile test in Lighthouse.This affects the scoring for things like tap target checks.
see : https://web.dev/articles/accessible-tap-targets
As noted in the article is best to ensure appropriate tab targets when the pointer device is possibly
coarse
.However when using that approach we still fail the lighthouse test because the styles behind such a media query are never applied during the test.
This contrasts with manually setting a mobile device in dev tools:
The text was updated successfully, but these errors were encountered: