imgix / ember-cli-imgix

Easily add imgix functionality to your Ember application
https://imgix.github.io/ember-cli-imgix
MIT License
26 stars 13 forks source link

fix: remove fallback src from srcset list #122

Closed srhcrete closed 4 years ago

srhcrete commented 4 years ago

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.