-
Notifications
You must be signed in to change notification settings - Fork 35
Description
The srcset 'w' feature isn't obviously clear what it refers to, if it's the image width in image pixels or the image with in CSS pixels or min/max-width of the viewport (like old srcset) or something else.
It may be clearer to switch to 100x50
syntax instead, which is also used by <link sizes>
. It would mean authors have to give the height of the image, but maybe that's not an undue burden (it's probably always known if the image's width is known) and it allows us to set the intrinsic dimensions before the image is loaded (#85). It's also slightly shorter than 100w 50h
.
We don't have to support height-based selection with sizes
(#86) at the same time as introducing height information in srcset
since height-based selection with sizes
would make syntax changes to sizes
which should be feature-detectable if we do it right. sizes
parsing now is forward compatible with both detecting and falling back to later entries in the value, so I think we're good there.
More discussion in http://ircbot.responsiveimages.org/bot/log/respimg/2014-04-22#T66654 onward