New issue
Advanced search Search tips

Issue 806252 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Incorrect offsetTop for large top values

Reported by johan.is...@gmail.com, Jan 26 2018

Issue description

UserAgent: 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 :)
 
positionbug.html
388 bytes View Download
Screen Shot 2018-01-26 at 15.16.33.png
72.0 KB View Download
Components: Blink>Layout
Labels: Needs-Triage-M63

Comment 3 by e...@chromium.org, Jan 30 2018

Status: Available (was: Unconfirmed)
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