Issue metadata
Sign in to add a comment
|
CSSOM View properties gets rounded to integer
Reported by
netmosf...@gmail.com,
Aug 10 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Example URL: Steps to reproduce the problem: cssom properties such as scrollTop, scrollLeft etc don't support fractional offsets (as specified in the working draft). What is the expected behavior? What went wrong? values seem always rounded to integer. breaks sites if browsed with a device having a DPR != 1 and there is no sane workaround, afaik thanks Does it occur on multiple sites: N/A Is it a problem with a plugin? N/A Did this work before? N/A Does this work in other browsers? N/A Chrome version: 52.0.2743.116 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 22.0 r0
,
Aug 11 2016
does this help? http://i.imgur.com/EJwo48f.gif sometimes the scrollbar can't reach the scroll-end. basically, scrollTop + clientHeight is not equal to scrollHeight, and is in fact a pixel smaller i also tried to get the same value through getBoundingClientRect but is wrong too.
,
Aug 18 2016
Thank you for providing more feedback. Adding requester "ssamanoori@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 3 2017
This owner is not able to receive e-mails, please re-triage.
,
Mar 13 2017
Cleaning up sheriffbot label "Needs-Review" label as a part of modified "Needs-Feedback" sheriffbot rule. [ref bug for cleanup 684919]
,
Mar 4 2018
,
Mar 4 2018
,
Mar 5 2018
This is not a dup, CSSOM view properties are different from the newly introduced visualViewport properties. However, this bug is really old - we've since shipped fractional scroll offsets for properties like scrollLeft/Top so I'm closing this bug. Feel free to reply here if you're still having issues and I can take a closer look. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by ssamanoori@chromium.org
, Aug 11 2016Labels: Needs-Feedback