News for hackers. Stuff that matters.
Re:Chrome 34: Responsive Images and Unprefixed Web Audio by scotth on Thursday February 27, 2014 @03:49PM (#7314951)
I believe the element that you're looking for is <picture>, which will be shipping with a future version of Chrome.

http://picture.responsiveimages.org/#examples

Re:Chrome 34: Responsive Images and Unprefixed Web Audio by PStamatiou on Thursday February 27, 2014 @03:49PM (#7314959)
Ah right, thanks. I had been thinking that picture and srcset were competing.
Re:Chrome 34: Responsive Images and Unprefixed Web Audio by igrigorik on Friday February 28, 2014 @02:02AM (#7317548)
They're complementary. <picture> uses subset of original srcset spec to meet the "resolution switching" use case - e.g. see Example 1 [1]. If you want to select an asset based on viewport width, then you'd either use "sizes" attribute on picture, or a combination of srcset + sources + sizes.

[1] http://picture.responsiveimages.org/#examples