Incorrect offsetTop for large top values
Reported by
johan.is...@gmail.com,
Jan 26 2018
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 Steps to reproduce the problem: 1. Position a div with style="position: absolute; top: 16893675px" 2. Check its offsetTop What is the expected behavior? offsetTop should be same as style top What went wrong? offsetTop 1px larger, seen in a grid component when scrolling a big data set. boiled down in attached test case Did this work before? N/A Does this work in other browsers? No Have only tried Safari 11.0.2, same behaviour Chrome version: 63.0.3239.132 Channel: stable OS Version: OS X 10.13.2 Flash Version: Have tried positioning in different ways with same result (top, translate, even tried margin :)
,
Jan 29 2018
,
Jan 30 2018
Interesting, we should be able to represent values up to 33,554,431 (2^25-1) without a loss in precision. |
|||
►
Sign in to add a comment |
|||
Comment 1 by dtapu...@chromium.org
, Jan 27 2018