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

fix: remove fallback src from srcset list #122

Merged
merged 1 commit into from
Dec 16, 2019

Conversation

srhcrete
Copy link
Contributor

Description

Fixes issue #69 - we're currently adding a "sizeless" URL to the end of the srcset attributes as a "fallback source" which is incorrect. The "fallback source" for an image element should be provided in the src attribute, not at the end of the srcset list.

To Reproduce

N/A

Expected Behavior

Every item in the srcset list should include a size descriptor, which in our case is always a width value or a resolution multiplier. Tests are still passing.

@jayeb jayeb requested a review from sherwinski December 13, 2019 22:12
updates tests

add myself as contributor as per PR template, woo

fix: add back a test that accidentally got removed
@srhcrete srhcrete force-pushed the removes-fallback-srcset branch from 28c0d6e to 6074870 Compare December 14, 2019 00:22
Copy link
Contributor

@sherwinski sherwinski left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @srhcrete!
Very much appreciated 🙌

@sherwinski sherwinski changed the title Fix (imgix-image): fixed bug #69 fix: remove fallback src from srcset list Dec 16, 2019
@sherwinski sherwinski merged commit 95206ff into imgix:master Dec 16, 2019
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.

3 participants