Skip to content

Files

Latest commit

 

History

History
10 lines (9 loc) · 553 Bytes

5f1aa74a3bfb5b5fff803e91.md

File metadata and controls

10 lines (9 loc) · 553 Bytes
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
html

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.