W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] Defaulting new image solution to 192dpi

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 17 May 2012 15:42:57 -0700
Message-id: <28894A47-6E67-4772-8010-35B5E41F1981@apple.com>
To: Kornel Lesiński <kornel@geekhood.net>
Cc: whatwg@lists.whatwg.org

On May 17, 2012, at 12:20 PM, Kornel Lesiński <kornel@geekhood.net> wrote:

> On Thu, 17 May 2012 19:32:51 +0100, Jeremy Keith <jeremy@adactio.com> wrote:
> 
>> Kornel wrote:
>>> Note that the scale multiplier can be omitted already when only the size is specified
>> 
>> I'm confused by what you mean by scale multiplier. The x value describes the pixel density of the device/screen, not the image, right?
> 
> I think it only makes sense if it describes the image, so that:
> 
> <img srcset="100x100image-pixels.jpg 2x">
> 
> would display at 50x50px (CSS px).

That is indeed how it works.

Cheers,
Maciej
Received on Thursday, 17 May 2012 22:43:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT