Re: [csswg-drafts] [cssom-view] Add pageZoomFactor to window interface (#3538)

Thanks for raising this, Ella.

To clarify, `pageZoomFactor` here means the ctrl+/- zoom in browser, as defined [here](https://drafts.csswg.org/cssom-view-1/#page-zoom), which is different from pinch zoom and device scale factor.  We have three related coordinate spaces here: physical pixels, device independent pixels (DIPs) and CSS pixels:
![image of proposed factor vs deviceScaleFactor](https://eirage.github.io/Conversion%20factors.png)

We already have [`window.devicePixelRatio`](https://drafts.csswg.org/cssom-view/#dom-window-devicepixelratio) to convert between physical and CSS pixels, but there is currently no way to convert any of these to DIPs or back.  The proposed `pageZoomFactor` fills the gap.


-- 
GitHub Notification of comment by mustaqahmed
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3538#issuecomment-456192598 using your GitHub account

Received on Monday, 21 January 2019 20:36:10 UTC