Test passes if the two boxes below look exactly the same.

Key to entities used below: א ... ו - The first six Hebrew letters (strongly RTL). ‭ - The LRO (left-to-right override) formatting character. ‬ - The PDF (pop directional formatting) formatting character; closes LRO. If the BDI in the test's first DIV were a SPAN, the 1 would be rendered to the left of the א
א1...
א1...
א1...
a1...
a1...
a1...
‭א1...‬
‭א1...‬
‭א1...‬
‭...1a‬
‭...1a‬
‭...1a‬