| <!DOCTYPE html> |
| <html lang="en" > |
| <head> |
| <meta charset="utf-8"/> |
| <title>The dir attribute: dir=ltr basic test</title> |
| <link rel='author' title='HTML5 bidi test WG' href='mailto:public-i18n-bidi@w3.org'> |
| <link rel='help' href='https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute'> |
| <link rel="match" href="reference/the-dir-attribute-002-ref.html"> |
| <meta name="assert" content="If the element's dir attribute is in the ltr state, the directionality of the element is ltr."> |
| <style type='text/css'> |
| .test, .ref { width: 90%; margin: 0 4%; font-size: 2em; position: absolute; top: 0; } |
| .ref { color: red; z-index: -100; } |
| |
| </style> |
| </head> |
| <body> |
| <p class="instructions">Test passes if you see no red characters.</p> |
| <div style="position: relative"> |
| <div class="test" dir="rtl"><p dir="ltr">مكتب W3C הישראלי</p><p>נכון <span dir="ltr">مكتب W3C הישראלי</span> שמאל</p></div> |
| <div class="ref"><p>‪مكتب W3C הישראלי‬</p><p style="text-align: right;">שמאל ‪مكتب W3C הישראלי‬ נכון</p></div> |
| </div> |
| </body> |
| </html> |