Summary: | There is no way to respond to the physical dimensions of the user's screen | ||
---|---|---|---|
Product: | WebKit | Reporter: | BrianMB <anewpage.media> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Major | CC: | anewpage.media, ap, tabatkins |
Priority: | P3 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Description
BrianMB
2011-03-24 16:47:10 PDT
> Without the capability to detect and respond to physical screen dimensions, there is no reliable way to know whether a device is actually mobile.
It's not clear to me what the intended use is.
What is a mobile device? Does a 17" notebook count as such?
Alexey, "Mobile" in the cellphone sense. Devices with screens small enough to warrant changing the layout of an application. I use mobile as a direct example, because today the most common use for Media Queries is to alter a layout for smartphones. However, this need could extend in the future to a variety of screens, from wristwatch-sized displays to jumbo displays in stadiums. Consider an iPod nano-sized device — http://www.apple.com/ipodnano/ — which runs applications made with web standards. Or consider a 2.8"-wide smartphone display with a 720p resolution. These are a couple instances where decisions cannot be made suitably based on pixel measurements. To put it in other words, Webkit is currently out-of-spec for Absolute Units: http://www.w3.org/TR/css3-values/#absolute0 The CSSWG resolved to set the physical units and the px unit to a fixed ratio of each other for backwards-compatibility reasons. We should not go against this. The CSSWG is interested in providing an optional switch to turn on "real physical units" or something similar, but any work in that area should go on in the standards group, not via innovation in Webkit. |