Why does “[x]y” display incorrectly in the RTL direction?

后端 未结 5 497
轻奢々
轻奢々 2021-02-05 01:51



        
5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 02:29

    I cannot tell you the reason but I can tell you how to fix it: add unicode-bidi: bidi-override;. See more about it

    [x]y

    The description

    The unicode-bidi property is used together with the direction property to set or return whether the text should be overridden to support multiple languages in the same document.

    is not clear enough to explain the behaviour. However, it works.

    EDIT

    The MDN article brings some light here, bidi-override actually disables the browser standard smart behaviour and everything works as is / as expected.

提交回复
热议问题