I would like to determine the pixel density of my user's browser.
It seems window.devicePixelRatio
works well, however, if the user zooms the browser, the value might be inaccurate, according to this question on SO.
Is there any way that I can tell the pixel density no matter whether a user zooms in/out his/her browser?