Summarized test results:
HTML5, dir isolation

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.

Updated

These tests check whether user agents apply isolation around an element where the dir attribute is used, and treat it as a neutral character.

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.

results

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.

Basic dir isolation

Snapshot summary, 2014-06-16
Firefox 29.0, Chrome 35.0.1916.153, Safari 6.1.4, Internet Explorer 11, Opera 22.0

No browser tested currently fully supports bidi isolation of elements with a dir attribute, although the desired behaviour is produced in many cases.

Test link Assertion Details
isolated from following number, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number with intervening neutrals, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number with intervening neutrals, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number with intervening neutrals, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from immediately following number, opposite direction Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.
isolated from immediately following number, auto Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.
isolated from immediately following number, same direction Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.
numbers isolated from preceding text, opposite direction Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
numbers isolated from preceding text, auto Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
numbers isolated from preceding text, same direction Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from following text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.
isolated from following text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.
isolated from following text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.
isolated from following text with intervening neutrals, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.
isolated from following text with intervening neutrals, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.
isolated from following text with intervening neutrals, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.
isolated from immediately following text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.
isolated from immediately following text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.
isolated from immediately following text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.
isolated from preceding text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from preceding text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from preceding text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from surrounding text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.
isolated from surrounding text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.
isolated from surrounding text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.

With CSS shim

The CSS Shim is a way to produce the behavior desired by using a few lines of CSS (see Inline markup and bidirectional text in HTML). These tests are informational, and do not test text specified in the HTML specification.

Snapshot summary, 2014-06-16
Firefox 29.0, Chrome 35.0.1916.153, Safari 6.1.4, Internet Explorer 11, Opera 22.0

Chrome, Safari and Opera pass all tests when the CSS Shim is used. Firefox passes all tests also, except those where the markup surrounds text that is not separated from other text by white space.

Internet Explorer currently doesn't support the shim.

Test link Assertion Details
isolated from following number, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number with intervening neutrals, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number with intervening neutrals, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from following number with intervening neutrals, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.
isolated from immediately following number, opposite direction Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.
isolated from immediately following number, auto Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.
isolated from immediately following number, same direction Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.
numbers isolated from preceding text, opposite direction Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
numbers isolated from preceding text, auto Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
numbers isolated from preceding text, same direction Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from following text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.
isolated from following text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.
isolated from following text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.
isolated from following text with intervening neutrals, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.
isolated from following text with intervening neutrals, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.
isolated from following text with intervening neutrals, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.
isolated from immediately following text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.
isolated from immediately following text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.
isolated from immediately following text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.
isolated from preceding text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from preceding text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from preceding text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.
isolated from surrounding text, opposite direction Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.
isolated from surrounding text, auto Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.
isolated from surrounding text, same direction Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.