Intended audience: users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know how language declarations work in current browsers.
These tests check whether user agents apply directional rules as described in the section about the bdo
element.
Note that the snapshot summaries of these test results are for released versions of the browsers tested. Versions that are still in development may provide better support for these features. The tests themselves do not test any vendor prefixes.
The tables show results for tests run on the date shown. Above the tables are summaries of the results at that date. The table data may be more up-to-date than the summary. If the tables contain some incorrectly scored tests, or tests that relate to non-released versions of browsers, these are not included in the summary.
To see the test, click on the link in the left-most column. To see detailed results for a single test, click on the link in the right-most column. The When the Links: Section 4.6.24 • Related tests
Basic direction overrides
Snapshot summary, 2014-02-17
Firefox 27.0, Chrome 32.0.1700.107, Safari 6.1.1, Internet Explorer 9, Opera 19.0bdo
element with a dir
attribute works as expected on all browsers.bdo
element has no dir
attribute, although the spec says Authors must specify the dir attribute on this element, with the value ltr to specify a left-to-right override and with the value rtl to specify a right-to-left override
, only Safari followed the spec. All other browsers tested applied an override consistent with the direction of the parent element.
Test link
Assertion
Details
bdo, dir ltr
The bdo element with dir set to ltr causes all contained text to ignore the bidirectional algorithm and displays all characters from left to right.
the-bdo-element-001
bdo, dir rtl
The bdo element with dir set to rtl causes all contained text to ignore the bidirectional algorithm and displays all characters from right to left.
the-bdo-element-002
bdo, no dir, rtl context
The bdo element with dir not set will not override the Unicode Bidi Algorithm.
the-bdo-element-003
bdo, no dir, ltr context
The bdo element with dir not set will not override the Unicode Bidi Algorithm.
the-bdo-element-004