[whatwg] Defaulting new image solution to 192dpi

Tab Atkins Jr. jackalmage at gmail.com
Thu May 17 15:06:24 PDT 2012


On Thu, May 17, 2012 at 11:32 AM, Jeremy Keith <jeremy at 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?

You can think of it either way in this case.  Devices with a pixel
density less than the Nx descriptor of an image won't download that
image if they have a choice (unless you're zooming or something, where
the effective pixel density is higher).

However, the Nx descriptor does have an effect on the image, by
adjusting the intrinsic size of the image.  If the image is 600 pixels
(image pixels) wide and sent with a 2x descriptor, its intrinsic size
will be 300px (CSS px).  You'll only notice this if you're using
auto-sizing, though.

~TJ



More information about the whatwg mailing list