Experiment to show flexbox changes its directionality based on the attribute added


when dir="ltr" is added to parent div the flex box starts from left to right in direction.

1
2
3

when dir="rtl" is added to parent div the flex box starts from right to left in direction.

1
2
3