On the standards track: Yes
Is Experimental: No
Is Deprecated: No
In Chrome version 69 on 2018-09-04
In Chrome Android version 69 on 2018-09-04
In Edge version 79 on 2020-01-15
In Firefox version 90 on 2021-07-13 Note: The scroll-margin property can cause an element's visibility to be incorrectly calculated for element.focus(). See bug 1708303.
In Firefox for Android version 90 on 2021-07-13 Note: The scroll-margin property can cause an element's visibility to be incorrectly calculated for element.focus(). See bug 1708303.
Not in Internet Explorer
In Quest Browser version 6.0 on undefined
In Opera version 56 on 2018-09-25
In Opera Android version 48 on 2018-11-08
In Safari version 14.1 on 2021-04-26 Note: Before version 14.1, scroll margin is not applied for scrolls to fragment target or scrollIntoView(), see bug 189265.
In Safari on iOS version 14.5 on 2021-04-26 Note: Before version 14.5, scroll margin is not applied for scrolls to fragment target or scrollIntoView(), see bug 189265.
In Samsung Internet version 10.0 on 2019-08-22
In WebView Android version 69 on 2018-09-04
In WebView on iOS version 14.5 on 2021-04-26 Note: Before version 14.5, scroll margin is not applied for scrolls to fragment target or scrollIntoView(), see bug 189265.