coderef

::scroll-buttonLimited availability

The ::scroll-button(<dir>) CSS pseudo-element is a focusable button which scrolls its originating scroll container element in the specified direction.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–134Not supported
135+Supportedsince Apr 1, 2025
Current: 155
Edge
12–134Not supported
135+Supportedsince Apr 4, 2025
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–134Not supported
135+Supportedsince Apr 1, 2025
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: ::scroll-button.

Feature detection

CSS · check before using
@supports selector(:scroll-button) {
  /* styles that use :scroll-button */
}

/* or in JavaScript */
if (CSS.supports("selector(:scroll-button)")) {
  // use it
}

Sub-features

Support for each part of the feature (10). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
scroll-button135135✕✕135✕✕
scroll-button.block-end135135✕✕135✕✕
scroll-button.block-start135135✕✕135✕✕
scroll-button.down135135✕✕135✕✕
scroll-button.inline-end135135✕✕135✕✕
scroll-button.inline-start135135✕✕135✕✕
scroll-button.left135135✕✕135✕✕
scroll-button.right135135✕✕135✕✕
scroll-button.star135135✕✕135✕✕
scroll-button.up135135✕✕135✕✕