News for hackers. Stuff that matters.
Re:Chrome 34: Responsive Images and Unprefixed Web Audio by TabAtkins on Friday February 28, 2014 @02:47AM (#7317625)
The srcset attribute by itself can't do what you ask; it only lets you specify multiple resolutions of an image, all (intended to be) the same size.

But wait for implementation to finish, and you'll be able to use the sizes='' attribute on the <img>, or the full <picture> deal, and that'll give you more control, letting you load a smaller image if the image would take up less space.

There are no comments on this comment yet.