GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.35k stars 9.37k forks source link

False Accessibility - Color Contrast test when using white offscreen text. #3143

Closed Snapstromegon closed 7 years ago

Snapstromegon commented 7 years ago

I'm currently working on a wordclock and while testing it, I found out, that the Accessibility test marks some of my texts as not readable, but they are white (#ffffff) on black background (#000000).

During the test exactly those elements are getting offscreen (because it stays in the mobile view and my clock makes a square using vh) and get marked as not readable.

If this isn't a problem and I made a mistake I would like to hear what I've done wrong.

Cheers Guys, You're great!

patrickhulce commented 7 years ago

@Snapstromegon thanks for the report! Is this reproducible when testing with axe alone? If so, they'll probably be able to help you out more by filing an issue over there. If it's only when using axe in Lighthouse we can take another look.

Snapstromegon commented 7 years ago

@patrickhulce the problem is reproducable with axe alone, but only if you manually switch do the mobile view - so in my case the problem would't exist, if the Lighthouse tool switches back to the desktop view.

Nevertheless I'll fiel an issue for the axe team.

brendankenny commented 7 years ago

Closing on this side. We'll pick it up when/if axe updates and we re-roll the dep.