W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: [css3-mediaqueries] Is 'resolution' in terms of device pixels or CSS pixels?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 07 Apr 2008 14:24:17 -0700
Message-ID: <47FA9101.4040508@inkedblade.net>
To: www-style@w3.org

L. David Baron wrote:
> On Sunday 2008-04-06 21:00 -0700, L. David Baron wrote:
>> The 'resolution' media feature has two new units, 'dpi' and 'dpcm'.
>> Are these "dots" supposed to be device pixels or CSS pixels?
> 
> For what it's worth:  when I was thinking about this I was thinking
> about monitors.  But the examples given (probably for printers) make
> it pretty clear that it's referring to device pixels.  I think the
> spec should probably just be clarified to say that.
> 
> Using media queries on resolution to pick font sizes is probably a
> bad idea, though, but it could be useful for things like deciding
> whether to use higher-resolution or lower-resolution (and lower
> bandwidth) images.

I second that.

~fantasai
Received on Monday, 7 April 2008 22:32:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:04 GMT