W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-mediaqueries] DPI in resolution media queries

From: Simon Fraser <smfr@me.com>
Date: Thu, 16 Feb 2012 21:24:18 -0800
Cc: www-style@w3.org
Message-id: <9B0651E8-7AC0-4DE5-9B32-8AF2BC881514@me.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
On Feb 16, 2012, at 7:36 pm, Boris Zbarsky wrote:

> On 2/16/12 10:21 PM, Simon Fraser wrote:
>> I think there is a legitimate use case for a media query which is
>> able to discern the true dimensions of the screen.
>> Imagine a desktop screen which is 1024x768, and a tablet screen
>> that has the same pixel dimensions, but is physically much smaller.
> Is that resolution in device pixels, or CSS pixels?
> If the former, and the tablet is a lot smaller, then each CSS px will end up being two device pixels in size, right?

I'm thinking of a case where on both devices have one physical pixel maps to one CSS pixel on unscaled pages
(i.e. a device-pixel-ratio of 1).

Received on Friday, 17 February 2012 05:24:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:12 UTC