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

core(gather): fix usesObjectFit property for ImageElement #6761

Merged
merged 1 commit into from
Dec 10, 2018
Merged

core(gather): fix usesObjectFit property for ImageElement #6761

merged 1 commit into from
Dec 10, 2018

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Dec 9, 2018

Summary

It is bugfix.

There is good check Displays Images With Incorrect Aspect Ratio. However, this check is not needed when image has css property object-fit different than fill. Values cover and contain already prevent this check. This PR makes values scale-down and none also prevent this check.

Appropriate links:
https://developers.google.com/web/tools/lighthouse/audits/aspect-ratio
https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit

Related Issues/PRs

#6760

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for helping us out @dima74!

@patrickhulce patrickhulce merged commit 029793d into GoogleChrome:master Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants