Scroll-margin-inline-end property is set on the child elements inside the container, so that snap position is offset by a margin inside the container in the inline direction.
In this case, snap position is set to end in inline direction, so the element in focus should snap into place at the very right of the container. But instead, because of the scroll-margin-inline-end value, the element in focus is offset by 20px margin between child element and container.