Created attachment 52394 [details] reproduce (for DRT) WebHTMLView.firstRectForCharacterRange returns NSRect with wrong y value. To reproduce, run attached file on DRT, that will results following text: You can see a pump "y:600" on y value at the beginning of the line. ---- Ignore me; this block is just a place holder to make the test result significant. ABC DEF abc def 2 i:0 x:16 y:364 x:24 y:364 x:32 y:364 x:8 y:349 x:16 y:349 x:24 y:349 x:32 y:349 i:1 x:16 y:321 x:24 y:321 x:32 y:321 x:0 y:600 x:16 y:306 x:24 y:306 x:32 y:306 ---- This problem is observable only from WebKit API, and not visible from DOM. The test case uses textInputController.firstRectForCharacterRange() to reveal it. The expectation for LayoutTest/editing/selection/move-left-right.html is also suffered by this problem, although its difference is minor issue for that test case.
A problem observable via textInputController.firstRectForCharacterRange() would probably affect inline text input, too.