scroll-margin
Read More at MDN DocsView SpecSafe to Use
scroll-margin
is considered safe to use.
It’s supported by 92% of global browsers.
Browsers
Version Breakdown
Full Support
Full Support
Full Support
Full Support
Partial Support
The scroll-margin
property can cause an element's visibility to be incorrectly calculated for element.focus()
. See bug 1708303.
Full Support
Partial Support
The scroll-margin
property can cause an element's visibility to be incorrectly calculated for element.focus()
. See bug 1708303.
No Support
Full Support
Full Support
Full Support
Full Support
Alternate name: scroll-snap-margin
Partial Support
Before version 14.1, scroll margin is not applied for scrolls to fragment target or scrollIntoView()
, see bug 189265.
Full Support
Alternate name: scroll-snap-margin
Partial Support
Before version 14.5, scroll margin is not applied for scrolls to fragment target or scrollIntoView()
, see bug 189265.
Full Support
Full Support