The bold purple text below has fuchsia border and a background consisting of numbers that increase in left-to-right order. The text given before each example is the UNICODE-convention version showing the logical order of the text in the test.
ltr: abc [def ABC] DEF
rtl: abc [def ABC] DEF
ltr: ABC [DEF abc] def
rtl: ABC [DEF abc] def