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

Re: [css-device-adaptation] New draft

From: Simon Fraser <smfr@me.com>
Date: Tue, 19 Oct 2010 08:43:11 -0700
Cc: www-style@w3.org
Message-id: <94CD6949-5023-4F5F-86E9-59EFD7664653@me.com>
To: Rune Lillesveen <rune@opera.com>
On Oct 19, 2010, at 4:10 AM, Rune Lillesveen wrote:

> On Mon, 18 Oct 2010 22:02:55 +0200, Kenneth Rohde Christiansen <kenneth.christiansen@gmail.com> wrote:
> 
>>> Apple's proposals, bring some information for zoom and magnification into
>>> the scripting environment.
>>> window.devicePixelRatio and device-pixel-ratio selectors are quite handy,
>>> target-densityDpi is a useful addition,
>>> but not supported by Apple (afaik).
>> 
>> 
>> The targetDensityDpi is half supported in WebKit trunk now, so when Apple
>> ports the iOS port to use WebKit2, this should be supported automatically.
>> We will also support this for Qt WebKit.
> 
> Could dpi values for zoom be an acceptable replacement for target-densityDpi?
> 
> Examples:
> 
>  /* Set the zoom factor so that there is a 1-1 relationship between physical and CSS pixels */
>  @viewport {
>    zoom: device-dpi
>  }

If you did this, you'd get different behavior on an iPhone 3Gs and an iPhone 4 (which has the double-resolution Retina display). I don't think that's the desired behavior. I'd suggest staying away from physical pixels here.

Simon
Received on Tuesday, 19 October 2010 15:44:11 GMT

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