::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.

/* Usage Example */
.chat-window::scroll-button(down) {
  /* Styles the down arrow button on the scrollbar */
  background: var(--brand);
  border-radius: 50%;
}
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC