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

Re: Proposal: Form factor media queries

From: Brian <irishb@gmail.com>
Date: Mon, 12 Dec 2011 08:53:30 -0500
Message-ID: <CAKvX=90yLwE1Y3LZ49xiePFybk+-n2MH-7eddmbDpG4E-rjw9w@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Christoph Päper <christoph.paeper@crissov.de>, www-style list <www-style@w3.org>
Thanks for everyone's input so far. Christoph, you're right in that with
device and display width and height queries, it's possible to determine
form factor. I suppose my issue lies in that we have to rely on something
other than a given value for "device-type" to determine the device type. I
would argue that the "intuitive factor" is greater in simply typing
device-type="handset" or "tablet", rather than writing out device
width/height queries.

Thanks everyone!
--
Brian Irish


On Sat, Dec 10, 2011 at 1:19 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> 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
> overflowing?")
>
> ~TJ
>
>
Received on Monday, 12 December 2011 13:54:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT