With the writing-mode property value set to vertical-rl the end of the elements in the block direction is changed from bottom to left, and this also affects the scroll-padding-block-end property.
In this example, snap position is set to end in block direction, so the element in focus should snap into place with a 20px distance to the bottom 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 left side of the container.