What steps will reproduce the problem?
(1) Load the below test case
(2) Observe the behaviour in chrome, firefox and other browsers (Edge, safari)
(3) The output is different in each of the browsers.
******************** TEST CASE *********************
<style>
body { margin: 0; }
</style>
<div style="width: 100.5px;">abc</div>
<script>
console.log(document.elementFromPoint(100.5, 12));
console.log(document.elementFromPoint(100.9, 12));
console.log(document.elementFromPoint(101, 12));
</script>
******************************************************
********************* Output *******************************
Firefox (same irrespective of manual zoom level)
Div
Body
Body
Chrome
Normal zoom:
Div
Div
Body
With manual zoom: 125%
Div
Body
Body
with manual zoom: 200%
Body
Body
Body
This has come up during the review of https://chromium-review.googlesource.com/c/chromium/src/+/716096
Comment 1 by schenney@chromium.org
, Nov 7 2017Status: Assigned (was: Untriaged)