Re: Behavior of device-pixel-ratio under zoom

On Thu, Oct 17, 2013 at 7:54 AM, Simon Pieters <simonp@opera.com> wrote:

> This thread seems to conclude that devicePixelRatio should be affected by
> page zoom (which affects the size of the initial viewport) but not by pinch
> zoom (which doesn't). I've specified devicePixelRatio as such in CSSOM View.
>
> http://dev.w3.org/csswg/cssom-**view/#dom-window-**devicepixelratio<http://dev.w3.org/csswg/cssom-view/#dom-window-devicepixelratio>


Thanks Simon.  This looks great to me.  I think it'd be worth noting
somewhere (not entirely sure where) that changes to the page zoom fire a
resize event, since they change the size of the viewport in CSS pixels, and
so authors that want to react to page zoom can simply listen to the window
resize event and take a look at devicePixelRatio.  I don't see a processing
model for page zoom defined anywhere, although that'd be the ideal place to
put this.

- James

Received on Thursday, 17 October 2013 16:53:52 UTC