Skip to content
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

Lighthouse emits incorrect Values assigned to role="" are not valid ARIA roles. message mismatching axe-core #16087

Closed
3 tasks done
TomerAberbach opened this issue Jun 24, 2024 · 1 comment
Assignees

Comments

@TomerAberbach
Copy link

FAQ

URL

https://tomeraberba.ch/avoid-layout-shifts-caused-by-web-fonts-with-postcss-fontpie

What happened?

Got this error:

Values assigned to role="" are not valid ARIA roles.

For the video elements on the page, which have role="img".

What did you expect?

I expected Lighthouse to say that role="img" is not allowed instead of saying something weird about role="".

I tested out what axe-core has to say about <video role="img"></video>, and it seems to give a proper message so I'm assuming that Lighthouse is doing something wrong:

Screenshot 2024-06-23 at 8 06 45 PM

I also confirmed that a minimal repro containing <video role="img"></video> still triggers the weird Lighthouse error.

What have you tried?

Seems pretty obvious that it's a Lighthouse bug. See above.

How were you running Lighthouse?

Chrome DevTools

Lighthouse Version

12.0.0

Chrome Version

Version 126.0.6478.114 (Official Build) (arm64)

Node Version

No response

OS

MacOS

Relevant log output

No response

@adamraine
Copy link
Member

This should be fixed in the most recent Lighthouse update #16042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants