Right-to-Left Text
This paragraph uses the default TextDirection.Ltr. Its text-align stays at the default Left, and the two naturally agree: left-to-right text that starts from the left edge.
يولد جميع الناس أحرارًا متساوين في الكرامة والحقوق. وقد وهبوا عقلاً وضميرًا وعليهم أن يعامل بعضهم بعضاً بروح الإخاء.
The heading and paragraph above set Direction: TextDirection.Rtl, which emits dir="rtl" and direction:rtl on the rendered <h2>/<p> tags. Direction alone does not change text-align - it's still Left by default, which is why the text above starts flush against the left edge of its box even though it reads right-to-left. The next paragraph adds Alignment: TextAlignment.Right explicitly for a fully mirrored block:
هذا نص تجريبي محاذى إلى اليمين، بالإضافة إلى اتجاهه من اليمين إلى اليسار.
Page 1 of 1