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 BDIs in the test's first DIV were SPANs, the ב would be rendered to the left of the א.
א ב...
א ב...
א ב...
a b...
a b...
a b...
‭אב...‬
‭אב...‬
‭אב...‬
‭...ba‬
‭...ba‬
‭...ba‬