Bug 236586 - Scrollbar on body can't be hidden on iOS with ::webkit-scrollbar
Summary: Scrollbar on body can't be hidden on iOS with ::webkit-scrollbar
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-14 03:56 PST by Alex Moore
Modified: 2024-01-19 06:53 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 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).