We need to improve createVisiblePositionAfterAdjustingOffsetForBiDi in order to resolve the bug 57340.
On second thought, the change I had locally would diverge the behavior of WebKit from that of NSTextView so I probably shouldn't do it.
Created attachment 107063 [details] work in progress