lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Confusion in Accessibility audit

Open panayotoff opened this issue 9 years ago • 6 comments

I think there is mistake in the Accessibility audit:

I get Accessibility 97 for the following reason:

Meta Tags Used Properly

Screen readers and other assistive technologies require annotations to understand otherwise ambiguous content.

[user-scalable="no"] is not used in the element and the [maximum-scale] attribute is not less than 5.

View failing elements <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui">

My meta seems alright, what might be the problem?

panayotoff avatar May 29 '17 21:05 panayotoff

https://css-tricks.com/probably-use-initial-scale1/ http://a11yproject.com/posts/never-use-maximum-scale/

And while initial-scale=1 is pretty useful, maximum-scale is bad news for accessibility.

I'd leave it like this, common pattern, adjustable in JS/CSS skjermbilde 2017-05-29 kl 23 18 10

If you think this is a bug, I need a url to test against.

evenstensberg avatar May 29 '17 21:05 evenstensberg

This link might also be helpful: https://dequeuniversity.com/rules/axe/1.1/meta-viewport

eric30 avatar Jun 07 '17 07:06 eric30

@panayotov this is as expected, the audit is telling you to not use user-scalable=no and have a maximum-scale of 5 or more, you have included user-scalable=no and set a maximum-scale of 1, so it failed. See @eric30's link for more info and hopefully #2418 should clear up more of these issues

patrickhulce avatar Jun 07 '17 17:06 patrickhulce

@patrickhulce What you're saying is correct, however the error message shown isn't correct. It showed me that user-scalable=no is not there even when it was there.

aseem2625 avatar Jun 15 '17 15:06 aseem2625

@aseem2625 yes, right now all audit descriptions are consistent in that they tell you the state you should be in, not the state that you are in. There has been a lot of confusion around this though, and #2418 will change this to have the behavior you're expecting.

patrickhulce avatar Jun 15 '17 17:06 patrickhulce

Just correcting @patrickhulce with a minor comment: New patch on this is at #2478 , as the prev branch had some rebasing issues

evenstensberg avatar Jun 16 '17 02:06 evenstensberg