Why does “[x]y” display incorrectly in the RTL direction?
<div style="direction: rtl"> [x]y </div> You can see HTML text [x]y displays as x]y] . What is the reason of that result? PS: I get that result in Chrome 56.0.2924.87 (64-bit). Jukka K. Korpela It is rendered correctly, i.e. according to specifications. You have asked for right-to-left layout. The rendering first takes the [ character. It is directionally neutral and therefore rendered in a RTL run rightmost and mirrored (so it looks like ] ). Next, to the left of it comes x]y in that order, since the Latin letters x and y have inherent left-to-right directionality and the neutral ] gets its