You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@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".
zcorpan is right. ResponsiveImagesCG/picture-element#253
Problem: Opera and Chrome blows up images to 100% of viewport; even if the source-image is smaller in size.
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.
The text was updated successfully, but these errors were encountered: