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

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).

Simon

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