.red {
color: red;
direction: rtl;
}
.green {
color: green;
direction: rtl;
}
p {
direction: ltr;
}
<p>Example:
1. <span class="red">ااڡوںںطں، ااڡوںںطو</span>
2. <span class="green">ااقونيطن هو قاتل النمر</span>
</p>
The above HTML and CSS render like this:
Note that in the HTML 'red' comes before 'green' in the left-to-right order of things whereas the rendering has them swapped.
If I replace the '2.' with any Latin letter, the spans swap into the right places.
How do I get the two spans (and all direct children of <p>) appear in the left-to-right order?
CSS-only solutions preferred.
