With the writing-mode property value set to vertical-rl the start of the element in the block direction is changed from top to right, and this also affects the scroll-padding-block property.
In this example, snap position is set to start in block direction, so the element in focus should snap into place with a 20px distance to the top of the container. But instead, because of the writing-mode value, the element in focus is offset by a 20px distance between child element and the right side of the container.