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   

Description Alex Moore 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.
Comment 1 Radar WebKit Bug Importer 2022-02-14 19:56:22 PST
<rdar://problem/88943534>
Comment 2 Simon Fraser (smfr) 2022-02-25 18:27:12 PST
Need to share some code between ScrollingTreeScrollingNodeDelegateIOS::commitStateAfterChildren() and the main UIScrollView.
Comment 3 Bruno Stasse 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).