10 points · by Tomte · 4y ago · 2 comments
Another hurdle is that you can't specify the heights of images. So now you're left with translating all those bounds from width x height to just width based on width x height of viewport. This srcset and sizes business feels really half-baked.
I wish I could just give the browser a list of image versions with their dimensions (both width and height), and the browser would just pick the smallest one with sufficient quality for a given viewport based on size of the viewport and dimensions of the img element in the given layout, i.e. the website author would only specify content and its different versions in a declarative way, not fill out algorithm details.
A bit for giggles, but still has some truth to it.