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.


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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:35 UTC