In horizontal writing mode, that is usually top and bottom. Prefer it over physical scroll-padding when layout may change with writing-mode. It is not inherited.
Baseline Widely available.
Not deprecated. Logical scroll-padding shorthand; available across modern browsers since September 2021 (Safari 15+). Applies to any scroll container, with or without snap.
Use scroll-padding-inline for the inline axis, or full scroll-padding for all four physical sides.
layout
Not the same as padding-block
It does not push content. It only changes where scroll and snap aim inside the scrollport.
Compatibility
Browser Support
scroll-padding-block is a browser CSS property. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available since Sep 2021
scroll-padding-block
Chrome 69+, Edge 79+, Firefox 68+, Safari 15+, Opera 56+, Samsung Internet 10.1+. Internet Explorer has no support.
97%Global reach
Google Chrome69+
Full support
Mozilla Firefox68+
Full support
Apple Safari15+
Full support
Microsoft Edge79+
Full support
Opera56+
Full support
Samsung Internet10.1+
Full support
Internet ExplorerNo support
Not supported
scroll-padding-blockWidely supported
Bottom line: Safe for modern logical layouts. Prefer this over physical top/bottom when writing-mode may change. Not a server runtime API.
Remember
Key Takeaways
Role: inset the scrollport on the block axis only.
Values: one or two of auto, length, or percentage.
Initial value:auto per side. Not inherited.
Tip: two values mean start, then end — logical, not always top then bottom.
One line:scroll-padding-block is the logical shorthand for block-start and block-end scrollport insets.
Frequently Asked Questions
It sets scrollport insets on the block axis only — block-start and block-end. In horizontal writing mode that is usually top and bottom.
Each longhand starts at auto. Browsers usually treat that like 0px unless they choose another offset.
scroll-padding is the physical four-side shorthand. scroll-padding-block is logical and only affects the block axis, so it adapts with writing-mode.
One value sets both block-start and block-end. Two values set start then end.
No. The property works on any scroll container. Snap makes the inset easier to see while scrolling.
It is Baseline and widely available since September 2021: Chrome 69+, Edge 79+, Firefox 68+, Safari 15+, Opera 56+. Internet Explorer does not support it. It is a browser CSS property, not a Node.js feature.