dir=rtl
gives the base direction of the text. Within that text, words with Latin letters will still be written left-to-right and multiple words with Latin letters (i.e. English sentences) will be ordered left-to-right as well!
The same is true for e.g. Arabic in dir=ltr
(default) base direction: it will be written right-to-left anyway, and multiple Arabic words will be ordered form right-to-left, even though the environment tells otherwise.
For that to work, the browser (or text renderer in general) uses the Unicode bidi algorithm. The algorithm by itself needs to know the directionality of the characters, which is part of Unicode as well. Latin and Arabic letters have a strong directionality, while the “normal” numbers have a weak left-to-right direction.
This distinction between weak and strong is made, because numbers are used in both ltr and rtl languages. The number itself is always written left-to-right, but it will be word-ordered right-to-left if surrounded by strong rtl words, and it will be word-ordered left-to-right if surrounded by strong ltr words.
If the number is not surrounded by strong typed words, the base direction is used.
Your ltr-“08/15” is not surrounded by ltr, so it is put rtl (base direction) from ltr-word “word”.
“one word” are two strong directioned words, so they are layed out ltr themselves and the words layed out ltr as well. No matter what the base direction is.
Try “first 08/15 second” and the numbers will be considered part of a bigger ltr sentence and laid out ltr.
.
it will also get affected because it's considered as ponctuation that should be at the end, so after the text in both direction – Giulia