::scroll-button
Limited availability73% of usersExperimental
A new pseudo-element that allows you to style the 'up', 'down', 'left' and 'right' buttons that appear in scrollable containers (like scrollbars).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick example
.chat-window::scroll-button(down) {
/* Styles the down arrow button on the scrollbar */
background: var(--brand);
border-radius: 50%;
}::scroll-button browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage73%of people can use this27% use a browser without it.
Browsers
135+
135+Mobile
135+Android