0

I wanted to find the value for window.devicesPixelRatio with 100% zoom. The problem is that if the user enters my website with a zoom-in or out, there is no good way to know what would be the window.devicesPixelRatio of his computer without the zoom.

  • Closing as a duplicate of the one asking how to get page zoom, since if there was a way to get one, you could get the other, but there is no such way, except if you are writing a browser extension, in which case you'd get access to [tabs.getZoom](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/getZoom) – Kaiido Jun 25 '20 at 04:27

0 Answers0