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.
In each DIV of the test:
- the first BDI, having no characters with strong direction, should be LTR by default;
- the second BDI, having an LTR character first, should be LTR by default;
- the third BDI, having an RTL character first, should be RTL by default.