With the direction property value set to rtl, the start of the element in the inline direction is changed from left to right, and this also affects the scroll-margin-inline property.
In this example, snap position is set to start in the inline direction. To put a margin of 20px where the snap position is, margin must be put on end of child element, because direction value is right-to-left.