According to the spec, https://www.w3.org/TR/css-scroll-snap-1/, :target/scrollIntoView()/etc should take scroll-margin, scroll-padding into account,
and if that element defines some snap positions, the user agent must snap to one of that element’s snap positions if its nearest scroll container is a scroll snap container.
Comment 1 by tcsabin...@gmail.com
, Jan 20 2018