With the writing-mode property value set to vertical-rl the start of the element in the inline direction is changed from left to top, and this also affects the scroll-margin-inline property.
In this example, snap position is set to start in block direction. To make a margin between child elements and container in this snap position, with writing-mode vertical-rl, the scroll-margin-inline property start value is set to 20px.