Bug 237225

Summary: Setting document.documentElement.scrollTop has unexpected result (when zoomed out)
Product: WebKit Reporter: receter
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: receter, rik, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: macOS 12   

Description receter 2022-02-25 13:47:03 PST
Steps to reproduce:

1. Open any page in Safari (15) and zoom out one step (cmd -)
2. Open console and set document.documentElement.scrollTop = 10
3. Read the same value document.documentElement.scrollTop
4. It is 9 instead of 10

Console output:

> document.documentElement.scrollTop = 10
< 10
> document.documentElement.scrollTop
< 9
Comment 1 Radar WebKit Bug Importer 2022-03-04 13:47:16 PST
<rdar://problem/89832500>
Comment 3 Anthony Ricaud 2023-12-20 08:55:53 PST
The autosize library is used by Gitlab which is therefore affected: https://gitlab.com/gitlab-org/gitlab/-/issues/31082