title | date | submitter | number | tags | discussion | |
---|---|---|---|---|---|---|
I want `srcset` and `sizes` to relate to the container rather than the viewport |
2020-07-24 09:18:02 UTC |
Bernard Nijenhuis |
5f1aa74a3bfb5b5fff803e91 |
|
Currently, images with srcset
and sizes
attributes can only be used relative to the viewport. When you have a more dynamic design where images are different widths depending on the content, you’d like srcset
to relate to the container they’re in, and not the viewport.