Bug 236586

Summary: Scrollbar on body can't be hidden on iOS with ::webkit-scrollbar
Product: WebKit Reporter: Alex Moore <matthew.garrath.thomas>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: augus.dupin, nmouchtaris, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   

Alex Moore
Reported 2022-02-14 03:56:37 PST
iOS Only (15.3) The scrollbar on body can't be hidden on iOS with ::webkit-scrollbar, although it can be everywhere else (including Safari macOS) -> Need WebKit iOS to support ::webkit pseudo-elements so we can set ::webkit-scrollbar width to 0 to hide it, like we can in both Safari and Chrome MacOS (Firefox uses another system). Probably some work to standardize this across all browsers would be nice.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-02-14 19:56:22 PST
Simon Fraser (smfr)
Comment 2 2022-02-25 18:27:12 PST
Need to share some code between ScrollingTreeScrollingNodeDelegateIOS::commitStateAfterChildren() and the main UIScrollView.
Bruno Stasse
Comment 3 2024-01-19 06:53:30 PST
Any update on this? This would significantly improve the experience when showing a scrollbar on the body doesn't make sense (some use cases when using scroll-snap, or when using a custom scroll indicator).
Note You need to log in before you can comment on or make changes to this bug.