Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API to force classic scrollbars #36422

Open
Loirooriol opened this issue Oct 12, 2022 · 0 comments
Open

Add API to force classic scrollbars #36422

Loirooriol opened this issue Oct 12, 2022 · 0 comments

Comments

@Loirooriol
Copy link
Contributor

CSS allows UAs to use either classic scrollbars or overlay scrollbars.

Classic scrollbars are much more error-prone since they affect layout. However, writing tests may not be useful because they can seem to pass on a buggy UA just because it decides to use overlay scrollbars instead.

So it would be useful to have some way of forcing the UA to use classic scrollbars in these tests.

Note that browsers are already capable of that: Firefox uses classic scrollbars with the pref ui.useOverlayScrollbars=0, and Blink/WebKit seem to use classic scrollbars with this CSS hack:

::-webkit-scrollbar { background-color: #eff0f1; width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #898c8d; }

So it would be a matter of exposing this behavior to WPT tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant