W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2011

[whatwg] Proposal: "device-type" Media Query

From: Brian <irishb@gmail.com>
Date: Thu, 8 Dec 2011 13:05:21 -0500
Message-ID: <CAKvX=90mn=X63xdV2g9E_sjM8iZdN7OrCRR38UQjBgaoQw9P6A@mail.gmail.com>
This would be my first foray into mailing lists, so if I'm "doing it
wrong", allow me to apologize.

With all of the attention being given to responsive design approaches, I
could not help but wonder what will happen in as little as a few years.
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. What we need in a media query is the ability to detect a true
form factor, a "device-type" if you will, something along the lines of the
"handheld" query of HTML4 lore.

I imagine something akin to: <link rel="stylesheet" media="handheld,
tablet" src="style.css">

Brian Irish
Received on Thursday, 8 December 2011 10:05:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC