srcset-polyfill icon indicating copy to clipboard operation
srcset-polyfill copied to clipboard

Should update to match the new spec

Open zcorpan opened this issue 11 years ago • 4 comments

It looks like this polyfill implements the old spec for srcset, where 'w' descriptors meant viewport max-width. The current spec makes 'w' descriptors mean width of the image, to be used together with the sizes attribute. The functionality for the old 'w' is available by using the picture element.

zcorpan avatar Aug 11 '14 04:08 zcorpan

@zcorpan - Unless I'm mistaken, the polyfill seems correct. According to the latest working spec (Nov 13 2014):

To specify an image, give first a URL, then one or more descriptors of the form 100w or 2x, where "100w" means "maximum viewport width of 100 CSS pixels" and "2x" means "maximum pixel density of 2 device pixels per CSS pixel".

booleanbetrayal avatar Dec 01 '14 20:12 booleanbetrayal

https://github.com/weblinc/img-srcset/issues/4#issuecomment-65200466

zcorpan avatar Dec 02 '14 09:12 zcorpan

zcorpan is right. https://github.com/ResponsiveImagesCG/picture-element/issues/253 Problem: Opera and Chrome blows up images to 100% of viewport; even if the source-image is smaller in size.

fischhase avatar Jan 21 '15 08:01 fischhase

:+1:

abernier avatar Aug 17 '15 06:08 abernier