Text suggestion is not shown in some cases

Originator:Krizai
Number:rdar://48926433 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Area:
WebKit

Summary:
In content editable div, suggestion won’t be shown if it doesn’t fit in the viewarea. It assumes that is should have a cross on the left size and when there is no place to fir it with this cross button in the web view it won’t be shown.

Steps to Reproduce:
Open attached project
In attached project there are two web views. In the first one ( red) the div has no margin, in the second one it has some ( so there is some space between div border and webview border)

Tap on first webview (red)
Typo something that should result in suggestion
Make sure that suggestion is supposed to be shown ( entered text will become highlighted)

Tap on second webview (green)
Typo something that should result in suggestion
Make sure that suggestion is supposed to be shown ( entered text will become highlighted) and suggestion will be shown

Expected Results:
Suggestion is correctly shown in red webview, same as in the green one

Actual Results:
Suggestion is not shown in red webview, only highlight is visible.

Version/Build:
Xcode Version 10.1 (10B61), iPhone XR, iOS 12.1 simulator
same on 
real iPhone 6s, iOS 12.1.4

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!