| <!DOCTYPE html> | |
| <!-- | |
| | The directionality of an element is inherited from its parent element if it | |
| | is not explicitly set on the element itself. | |
| | https://www.w3.org/TR/html50/dom.html#the-directionality | |
| | All explicit embedding levels are determined from explicit directional | |
| | formatting characters using a directional status stack. | |
| | http://unicode.org/reports/tr9/#Explicit_Levels_and_Directions | |
| --> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| margin: 0px; | |
| font-family: Roboto, Noto Naskh Arabic UI; | |
| font-size: 30px; | |
| color: #fff; | |
| } | |
| .containing-block { | |
| background-color: #03a9f4; | |
| width: 500px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="containing-block"> | |
| <div dir="rtl">ط1<span>لتدلت</span>دتد</div> | |
| <div>ط1<span dir="rtl">2لتدل3<span dir="ltr">تدلت4</span>دل5ل6تد</span>لتد</div> | |
| <div dir="rtl">ط1a<span dir="ltr">لتد2ل<span dir="rtl">3تد</span>لتb4د<span dir="rtl">ل5ت6دcل</span>7تد8dل</span>تد</div> | |
| <div dir="ltr">يa<span dir="rtl">bطا32لت</span>دcde</div> | |
| <div dir="rtl"><span>ط1لتدلنشاabطتد2cdيل</span></div> | |
| <div>abط1<span dir="rtl">2لتالت34</span>دلتcd</div> | |
| <div>a<span dir="rtl">b<span dir="rtl">12دل</span>تد3<span dir="ltr">4</span>.cd</span>.,</div> | |
| </div> | |
| </body> | |
| </html> |