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 just SPANs, the א would order the 1 2 3 as 3 2 1, and the ו would (with the ה) order the ?! as !?.
א [1 2 3 b] c [d ה?!] ו...
a [1 2 3 ב] ג [ד e?!] f...
‭א [1 2 3 b] c [d ה?!] ו...‬
‭...f [!?e ד] ג [ב 3 2 1] a‬