| <!DOCTYPE html> | |
| <!-- | |
| | The directionality of an element is inherited from its parent element if it | |
| | is not explicitly set on the element itself. The parent does not have its | |
| | directionality impacted by its children. | |
| | https://www.w3.org/TR/html5/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: 300px; | |
| line-height: 1.2em; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="containing-block"> | |
| <div><span dir="rtl">,test.<div dir="ltr">32.ما اسمك؟</div> Thanks.</span></div> | |
| <div><span dir="rtl"><span dir="rtl">,test.<div dir="ltr">32.ما اسمك؟</div></span> Thanks.</span></div> | |
| <div><span dir="rtl"><span dir="ltr">,test.<div dir="ltr">32.ما اسمك؟</div></span> Thanks.</span></div> | |
| <div><span dir="ltr"><span dir="rtl">,test.<div dir="ltr">32.ما اسمك؟</div></span> Thanks.</span></div> | |
| </div> | |
| </body> | |
| </html> |