In horizontal writing mode with LTR direction, that is usually left and right. Prefer it over physical left/right when layout may change with writing-mode or direction. 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.
It does not push content. It only changes where scroll and snap aim inside the scrollport.
Compatibility
Browser Support
scroll-padding-inline is a browser CSS property. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available since Sep 2021
scroll-padding-inline
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-inlineWidely supported
Bottom line: Safe for modern logical layouts. Prefer this over physical left/right when writing-mode or direction may change. Not a server runtime API.
Remember
Key Takeaways
Role: inset the scrollport on the inline 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 left then right.
One line:scroll-padding-inline is the logical shorthand for inline-start and inline-end scrollport insets.
Frequently Asked Questions
It sets scrollport insets on the inline axis only — inline-start and inline-end. In horizontal writing mode that is usually left and right.
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-inline is logical and only affects the inline axis, so it adapts with writing-mode and direction.
One value sets both inline-start and inline-end. Two values set start then end.
No. The property works on any scroll container. Horizontal 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.