Re: [css-device-adaptation] New draft

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 UTC