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: L. David Baron <dbaron@dbaron.org>
Date: Mon, 7 Apr 2008 11:40:18 -0700
To: www-style@w3.org
Message-ID: <20080407184018.GA5362@ridley.dbaron.org>

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.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 7 April 2008 18:40:56 GMT

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