::scroll-button
A new pseudo-element that allows you to style the 'up', 'down', 'left', and 'right' buttons that appear in scrollable containers (like scrollbars).
This is an experimental technology. The syntax and behavior are still subject to change.
Syntax
/* Usage Example */
.chat-window::scroll-button(down) {
/* Styles the down arrow button on the scrollbar */
background: var(--brand);
border-radius: 50%;
}
::scroll-button Browser support
Limited availability
Since
2020 69% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
135+
135+