- From: Michael McGinnis <mikemcg@biographiks.com>
- Date: Thu, 5 Mar 2015 07:10:55 -0600
- To: public-respimg@w3.org
Paul, I tend to be a purist too, as far as separating content and presentation. For a CSS based solution (but which doesn't solve all the problems that Yoav raised), take a look at image-set <http://cloudfour.com/examples/image-set/>. Still, one could argue that a truly purist approach would be to not use the img element either, to use CSS background images exclusively, if images are simply presentational. For me as a developer, one big advantage of srcset/sizes over a CSS based solution (I haven't needed to use picture yet) is that the images are right there in my HTML. I don't have to edit two files to change an image. I don't have to keep inspecting elements to see what line of CSS is generating this image. Background images on empty divs feels like a hack now.
Received on Thursday, 5 March 2015 22:00:33 UTC