Click on the page to set the three test layers.
Zoom factor: .
This test interprets the coordinates as page coordinates (i.e. pageX/Y). I calculate the expected positions as follows:
clientX/Y = pageX/Y - window.pageX/YOffset
clientX/Y = pageX/Y - document.documentElement.getBoundingClientRect().left/top
screenX/Y = clientX/Y * devicePixelRatio * zoom
,zoom = documentElement.clientWidth / window.innerWidth