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

Re: [css-device-adaptation] New draft

From: Rune Lillesveen <rune@opera.com>
Date: Tue, 19 Oct 2010 13:10:03 +0200
To: www-style@w3.org
Message-ID: <op.vktla0r48isf1p@id-c1005.oslo.osa>
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
   }


   /* Set the zoom factor so that there are 160 CSS pixels per inch. */
   @viewport {
     zoom: 160dpi
   }


You would lose the possibility to do something like this:

   /* Set zoom factor so that a CSS pixel is rendered as 2x2 physical  
pixels with a viewport width of 500px. */
   @viewport {
     target-densityDpi: device-dpi;
     zoom: 2;
     width: 500px;
   }


Are there important use cases for combinations of target-densityDpi and  
zoom?

-- 
Rune Lillesveen
Senior Core Developer / Architect
Opera Software ASA
Received on Tuesday, 19 October 2010 11:10:38 GMT

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