News for hackers. Stuff that matters.
Re:First draft of HTML img srcset for responsive images by Kilimanjaro on Tuesday May 15, 2012 @09:22AM (#3976405)
FTFY

    <imgset>
      <img src="foo.jpg">
      <img src="foo1.jpg" width="100">
      <img src="foo2.jpg" density="2">
    </imgset>
Re:First draft of HTML img srcset for responsive images by tubes on Tuesday May 15, 2012 @11:14AM (#3976918)
Not a good idea. Browsers that do not support imgset would show all three images using that syntax. A new element name like "<set>" would be ignored by them.
Re:First draft of HTML img srcset for responsive images by Kilimanjaro on Tuesday May 15, 2012 @02:39PM (#3978051)
CSS to the rescue

    imgset img{display:none;}
    imgset img:first-child{display:block;}
Same with modern HTML5 tags, modernizer or any other tool would handle that for you.
Re:First draft of HTML img srcset for responsive images by user24 on Sunday May 20, 2012 @05:44AM (#3998398)
Not really, what about browsers that don't support first-child? Backwards compatibility is important.