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.
http://picture.responsiveimages.org/#examples