-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Aspect ratio audit fails on SVG #3716
Comments
Thanks for reporting @peterjanes! We ignore SVGs for responsive image savings but we should ignore them here too 👍 For any potential first-time bug fixers, we just need to filter out based on mimeType here lighthouse/lighthouse-core/audits/image-aspect-ratio.js Lines 73 to 78 in fbe3fda
|
On it! Is it just the |
Thanks so much for volunteering @TejasQ but Peter beat you to the punch 😄 feel free to take a look at some of our other good first issues! |
Thanks @patrickhulce! Missed the reference from @peterjanes! |
Hi all, do you have any idea about when this changes will deployed to prod?. Cheers! |
@leonardorey1970 should go out with our next release by end of this week in extension and CLI. Chrome stable will get it around end of January. |
Thanks patrickhulce for your reply! |
* core(aspect-ratio): skip aspect ratio audit for svg, fixes GoogleChrome#3716 * core(aspect-ratio): use the correct svg mimeType in the test * core(aspect-ratio): skip aspect ratio audit for svg * core(aspect-ratio): use the correct svg mimeType in the test * core(aspect-ratio): explain why svg is filtered * core(aspect-ratio): better unit test (fails when it should)
The image aspect ratio audit appears to fail for SVG images. If you run a "best practices" audit on the standalone HTML file in this zip (unzip it and put it on a webserver) you'll see it includes
I've tried it with different combinations of width/height attributes and CSS, and none can make it pass the audit.
The text was updated successfully, but these errors were encountered: