Bug 237225 - Setting document.documentElement.scrollTop has unexpected result (when zoomed out)
Summary: Setting document.documentElement.scrollTop has unexpected result (when zoomed...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 15
Hardware: Unspecified macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-25 13:47 PST by receter
Modified: 2023-12-20 08:55 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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