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(responsive-images): move images with no dimensions to offscreen audit #4487

Merged
merged 2 commits into from
Feb 9, 2018

Conversation

patrickhulce
Copy link
Collaborator

fixes #3508

previously, images that had dimensions of 0 were listed in both the "Properly size images" audit (uses-responsive-images) and the "Offscreen images" audit (offscreen-images).

This PR changes the name of offscreen to "Non-visible images" and "Properly size images" does not show an image if the area of the image was 0.

@midzer @tomayac @philipwalton @wardpeet does this sound good to you?

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

code lgtm.

i'm thinking we should keep the "Offscreen" title anyways, though. I mean, this does get into some philosophical shit:

If a pixel at 5,5
…is 0px wide and 0px tall
Is it really there?

So I feel okay with keeping a slightly more accepted term even if its not 100% semantically accurate.

wdyt

@paulirish paulirish merged commit c3620b1 into master Feb 9, 2018
@paulirish paulirish deleted the no_more_100_percent branch February 9, 2018 15:13
@midzer
Copy link
Contributor

midzer commented Feb 9, 2018

Sounds awesome!
Looking forward for new version being released :)

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.

Handling lazy loaded images
4 participants