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

Re: Behavior of device-pixel-ratio under zoom

From: Simon Pieters <simonp@opera.com>
Date: Thu, 17 Oct 2013 23:23:50 +0200
To: "James Robinson" <jamesr@google.com>
Cc: www-style <www-style@w3.org>, "Robert O'Callahan" <robert@ocallahan.org>
Message-ID: <op.w44a10m0idj3kv@simons-macbook-pro.local>
On Thu, 17 Oct 2013 18:53:25 +0200, James Robinson <jamesr@google.com>  
wrote:

> 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.

See http://dev.w3.org/csswg/cssom-view/#resizing-viewports

-- 
Simon Pieters
Opera Software
Received on Thursday, 17 October 2013 21:24:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:03 UTC