W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Re: Proposal: Form factor media queries

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 10 Dec 2011 10:19:14 -0800
Message-ID: <CAAWBYDCGosevJi_HZfWyOpTeqbEL53JUm4DJhhO+Dd483GZHiw@mail.gmail.com>
To: Christoph Päper <christoph.paeper@crissov.de>
Cc: www-style list <www-style@w3.org>
On Sat, Dec 10, 2011 at 4:36 AM, Christoph Päper
<christoph.paeper@crissov.de> wrote:
> Brian:
>> Smartphones will likely have resolutions that will either rival or
>> supersede present-day laptop resolutions, so our approach of detecting
>> screen resolution and/or pixel density will be useless as a means to detect
>> form factor.
> Um, if I’m not mistaken, the device and display width and height queries would work just fine with physical units (‘mm’, ‘cm’, even ‘in’, ‘pt’, ‘pc’) if they’re not affected by the fixed 96px = 72pt (= 1in = 25.4mm) ratio required elsewhere (font size etc.).

They work the same, with the fixed ratio.  Anything else would be
*ridiculously* confusing.  ("I set up a media query asking if the
screen is 10in wide, and then set the body's width to 10in!  Why is it

Received on Saturday, 10 December 2011 18:20:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:11 UTC