Intended audience: users, HTML coders, script developers, CSS coders, Web project managers, and anyone who wants to know the dir attribute works in current browsers..
Updated
These tests check whether user agents correctly apply the auto
value of the dir
attribute to improve handling of bidirectional text in languages such as Arabic, Hebrew, Persian, Thaana, Urdu, etc.
To see the test, click on the link in the left-most column. To see detailed results for a single test, click on a row and look just above the table. The detailed results show the date(s) the test result was recorded, and the version of the browser tested.
Any dependencies are shown in notes above the table, and notes below the table will usually provide any additional useful information, including an explanation of why a result was marked as 'partially successful'. Where the instructions tell you to look for red characters, these characters should be clearly discernable behind the black text of the test – ignore any anti-aliasing 'glow'.
Key:
pass | fail | partially successful |
Link (to run test) | Assertion | Firefox | Chrome | Opera | Safari | Edge | IE |
---|---|---|---|---|---|---|---|
dir=auto, inline auto direction the-dir-attribute-046.html |
When dir='auto', the direction is set according to the first strong character of the text. dir=auto is applied to an inline element here, in various base direction contexts. | pass | pass | pass | pass | fail | fail |
dir=auto, inline isolation the-dir-attribute-047.html |
dir='auto' on an inline element will directionally isolate its contents from a following number. | pass | pass | pass | pass | fail | fail |
dir=auto, start with L the-dir-attribute-048.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with R/AL the-dir-attribute-049.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Hebrew or Arabic letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
Links: Section 3.2.5.6 • Related tests
Link (to run test) | Assertion | Firefox | Chrome | Opera | Safari | Edge | IE |
---|---|---|---|---|---|---|---|
dir=auto, isolated in LTR text the-dir-attribute-050.html |
When dir='auto', the direction is set according to the first strong character of the text, but the element behaves externally as a neutral character. In this test, it allows a preceding R to form a single directional run with a succeeding number. | pass | pass | pass | pass | fail | fail |
dir=auto, start with bdi, then L the-dir-attribute-051.html |
When dir='auto', the direction is set according to the first strong character of the text while ignoring bdi elements. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with bdi, then R the-dir-attribute-052.html |
When dir='auto', the direction is set according to the first strong character of the text while ignoring bdi elements. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with dir=auto, then L the-dir-attribute-053.html |
When dir='auto', the direction is set according to the first strong character of the text while ignoring contained elements with an explicit dir of their own. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with dir=auto, then R the-dir-attribute-054.html |
When dir='auto', the direction is set according to the first strong character of the text while ignoring contained elements with an explicit dir of their own. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with dir, then L the-dir-attribute-055.html |
When dir='auto', the direction is set according to the first strong character of the text while ignoring contained elements with an explicit dir of their own. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with dir, then R the-dir-attribute-056.html |
When dir='auto', the direction is set according to the first strong character of the text while ignoring contained elements with an explicit dir of their own. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with L within contained element the-dir-attribute-057.html |
When dir='auto', the direction is set according to the first strong character of the text, including text within contained elements. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with R within contained element the-dir-attribute-058.html |
When dir='auto', the direction is set according to the first strong character of the text, including text within contained elements. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with script, then L the-dir-attribute-059.html |
When dir='auto', the direction is set according to the first strong character of descendant text while ignoring descendant script elements. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with script, then R the-dir-attribute-060.html |
When dir='auto', the direction is set according to the first strong character of descendant text while ignoring descendant script elements. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with style, then L the-dir-attribute-061.html |
When dir='auto', the direction is set according to the first strong character of descendant text while ignoring descendant style elements. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with style, then R the-dir-attribute-062.html |
When dir='auto', the direction is set according to the first strong character of descendant text while ignoring descendant style elements. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with textarea, then L the-dir-attribute-063.html |
When dir='auto', the direction is set according to the first strong character of descendant text while ignoring descendant textarea elements. In this test, it is the Latin letter A, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with textarea, then R the-dir-attribute-064.html |
When dir='auto', the direction is set according to the first strong character of descendant text while ignoring descendant textarea elements. In this test, it is the Hebrew letter Alef, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with EN, then L the-dir-attribute-065.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Latin letter A since digits are not strongly directional, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with EN, then R the-dir-attribute-066.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Hebrew letter Alef since digits are not strongly directional, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with N, then EN, then L the-dir-attribute-067.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Latin letter A since neutrals and digits are not strongly directional, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with N, then EN, then R the-dir-attribute-068.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Hebrew letter Alef since neutrals and digits are not strongly directional, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
dir=auto, start with N, then EN, then L the-dir-attribute-069.html |
When dir='auto', the direction is set according to the first strong character of the text, ignoring neutrals and numbers. If there is no strong character, as in this test, the direction defaults to LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with N, then L the-dir-attribute-070.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Latin letter A since neutrals are not strongly directional, thus the direction must be resolved as LTR. | pass | pass | pass | pass | fail | fail |
dir=auto, start with N, then R the-dir-attribute-071.html |
When dir='auto', the direction is set according to the first strong character of the text. In this test, it is the Hebrew letter Alef since neutrals are not strongly directional, thus the direction must be resolved as RTL. | pass | pass | pass | pass | fail | fail |
Links: Section 3.2.5.6 • Related tests