WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 240859
Bug 282347
Setting overflow:hidden on <body> (when body is the scrolling element) will only work if Safari address bar is visible
https://bugs.webkit.org/show_bug.cgi?id=282347
Summary
Setting overflow:hidden on <body> (when body is the scrolling element) will o...
Zouhir
Reported
2024-10-30 12:36:23 PDT
## Repro steps - Open
https://demo-webkit-scroll-lock.glitch.me
in Safari Browser ### Case a - a.1 Make sure Safari Address Bar is **visible** - a.2 Click lock scrolling button, this will add `overflow: hidden` to the body element - a.3 Try to scroll up and down ### Case b - a.1 Make sure Safari Address Bar is **HIDDEN** - a.2 Click lock scrolling button, this will add `overflow: hidden` to the body element - a.3 Try to scroll up and down ## Expected - Case a: locks scrolling / document does not scroll - Case b: locks scrolling / document does not scroll ## Actual - Case a: successful, locks scrolling / document does not scroll - Case b: fails ## Conclusion The visibility of the address bar seems to interfere with scrolling and Safari's ability to apply consistent overflow rules on the scrolling element when it's both hidden and visible.
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2024-10-30 16:34:52 PDT
*** This bug has been marked as a duplicate of
bug 240859
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug