This behavior is undesirable in scenarios where the editable element too large to be centered in the viewport. Currently, we scroll such that the top of the element is aligned with the top of the viewport, but this can result in unnecessary scrolling if the top of the element is already in view, and near the top of the viewport. In particular, when WKScrollView has a top content inset and has content inside the inset area, this means that tapping to focus an element at (0, 0) in the document always causes the web view to scroll away content in the top inset area.
<rdar://problem/46758445>
Created attachment 357424 [details] Patch
Created attachment 357425 [details] Fix iOS open source builds
Comment on attachment 357425 [details] Fix iOS open source builds Clearing flags on attachment: 357425 Committed r239314: <https://trac.webkit.org/changeset/239314>
All reviewed patches have been landed. Closing bug.