rsnext/test/integration/image-component/basic
Steven 61fab923eb
Fix Image srcset to ensure the component's width is the largest possible image (#18236)
There was a bug when the user defines a width on the Image component, but a larger size image is requested.

This is because the browser uses the `srcset` to decide which image size to request and we had the srcset basically hardcoded.

This PR fixes the behavior so that the `srcset` will never be larger than the `width` defined on the component.

It also fixes a bug where the preload srcset did not match the img srcset.

- Related to #18147 
- Related to #18122
2020-10-26 14:29:52 +00:00
..
pages Fix Image srcset to ensure the component's width is the largest possible image (#18236) 2020-10-26 14:29:52 +00:00
test Fix Image srcset to ensure the component's width is the largest possible image (#18236) 2020-10-26 14:29:52 +00:00
next.config.js Fix Image srcset to ensure the component's width is the largest possible image (#18236) 2020-10-26 14:29:52 +00:00