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