GoogleChrome / GoogleChrome/lighthouse
SVGs failing due to lack of alt attribute
Open
bug
P3
upstream-action-required
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
My report suggests that SVGs should contain an `alt` attribute but the recommended way to do this is with a `title` and/or `desc` element.
Adding either an `alt` attribute or a `title` element to SVGs being audited still results in a failure:

Adding `title` elements similarly fails:

Adding both results in the same failure.
So the question is, what will it take to make this pass in Lighthouse and should the recommendation documentation be updated to reflect this?
https://developers.google.com/web/tools/lighthouse/audits/alt-attribute
Contributor guide
Assessment
This issue has not been assessed yet.