W3C home > Mailing lists > Public > www-style@w3.org > October 2012

[css-device-adapt] Units

From: Kenneth Rohde Christiansen <kenneth.r.christiansen@intel.com>
Date: Wed, 24 Oct 2012 14:41:09 +0200
Message-ID: <CAEC208sxncwCrryRxnuUx9_ON_aFiLn9OeA65g3eEFMzB6G=TA@mail.gmail.com>
To: www-style list <www-style@w3.org>
The CSS Device Adaptation specs says:

@viewport {
  width: 980px;
  min-zoom: 0.25;
  max-zoom: 5;

Note that these values might not fit well with all UAs. For instance,
with a min-zoom of 0.25 you will be able to fit the whole width of the
document inside the window for widths up to 1280px on a 320px wide
device like the iPhone, but only 960px if you have 240px display.

The iPhone >= 4, has a device dpi of 320, but a CSS DPI of 192, so
shouldn't that be made a bit more clear here. Also at zoom 1.0 the
iPhone has a width of 160px (CSS unit) due to resolution being 2dppx,
so at scale 0.25, it can fit a document of width 640px and not 1280px.


Intel Denmark Aps
Langelinie Alle 35, DK-2100 Copenhagen
CVR No. 76716919

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Received on Wednesday, 24 October 2012 12:41:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC