With the writing-mode property value set to vertical-rl, the end of the element in the inline direction is changed from right to bottom, and this also affects the scroll-margin-inline-end property.
In this example, snap position is set to end 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-end property value is set to 20px.