Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Markus Ernst
Am 07.09.2012 03:36 schrieb Tab Atkins Jr.: This email is an extension of the thread started at http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-August/036953.html by John Mellor, distilling the core problem he has into a more easily-understood and digested form. The srcset attribute,

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Simon Pieters
On Fri, 07 Sep 2012 06:07:30 +0200, Fred Andrews freda...@live.com wrote: From: jackalm...@gmail.com ... I'm not sure how best to solve this, but John Mellor suggested allowing the specification of the image's native dimensions somehow. That way, the browser could know that the 1600.jpg

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Fred Andrews
From: sim...@opera.com ... On Fri, 07 Sep 2012 06:07:30 +0200, Fred Andrews freda...@live.com wrote: From: jackalm...@gmail.com ... I'm not sure how best to solve this, but John Mellor suggested allowing the specification of the image's native dimensions somehow. That way, the

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Hans Muller
On 9/6/12 6:36 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Consider the following example: img srcset=800.jpg 1x, 1600.jpg 2x style=width: 100%; height: auto; For a screen that's somewhere near 800px wide, this works just fine. However, a 1x screen 1600px wide (not too uncommon - I think a

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Tab Atkins Jr.
On Fri, Sep 7, 2012 at 9:21 AM, Hans Muller hmul...@adobe.com wrote: On 9/6/12 6:36 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Consider the following example: img srcset=800.jpg 1x, 1600.jpg 2x style=width: 100%; height: auto; For a screen that's somewhere near 800px wide, this works just

[whatwg] srcset isn't future-friendly to screen size differences

2012-09-06 Thread Tab Atkins Jr.
This email is an extension of the thread started at http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-August/036953.html by John Mellor, distilling the core problem he has into a more easily-understood and digested form. The srcset attribute, as currently written, is not friendly to large

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-06 Thread Fred Andrews
From: jackalm...@gmail.com ... I'm not sure how best to solve this, but John Mellor suggested allowing the specification of the image's native dimensions somehow. That way, the browser could know that the 1600.jpg image is appropriate to serve as an 800px wide high-dpi image, or a 1600px