New issue
Advanced search Search tips

Issue 808798 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 641379
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

CSS style properties computed with single floating point precision

Reported by glro...@gmail.com, Feb 3 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36

Steps to reproduce the problem:
15:43:07.229 document.body.style.top = 10000000+"px"
15:43:07.240 "10000000px"
15:43:09.023 document.body.style.top
15:43:09.033 "1e+07px"

What is the expected behavior?
use double

What went wrong?
...well a lot of things can go wrong this way.

I am developing a virtualised grid and I can't rely on the css engine to position the elements for me when the 
scroll area is too big.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 64.0.3282.140  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

In Safari the grid works without glitches, in the console log I can see the numbers don't loose their precision
 
virtual-repeat.zip
3.8 KB Download
Labels: Needs-Triage-M64

Comment 2 by nainar@google.com, Feb 5 2018

Mergedinto: 641379
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment