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

> I would argue that we should change event.screen{X,Y} the same way, but that could be tricky. 

It's definitely nicer to have `event.screenX/Y` based on the zoomed coordinate space too, but it's very risky to change it since all major browser (except edge) have them unzoomed for many years.

the `window.outerWidth` and window.innerWidth` in different coordinate space is definitely a bug in chrome. It's only a crazy way developers using to getting the zoom factor.

> why should content be aware of zoom level?

I'm not very familiar with the use case except event part, but [this chromium bug](https://bugs.chromium.org/p/chromium/issues/detail?id=899707)  has 10+ stars, and also there are a lot of discussion [here](https://stackoverflow.com/questions/1713771/how-to-detect-page-zoom-level-in-all-modern-browsers). This can be a sign showing that people are still care about the zoom level.



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

Received on Thursday, 24 January 2019 21:11:21 UTC