There are 3 issues: - The focus() ScrollRectToVisibleOptions does not match the scrollIntoView() one - The test uses <input type="date">, which redirects focus inside the UA shadow root, so we don't take in account the shadow host scroll margin - The test should wait for a tick, since scrolling to the focused element doesn't happen immediately in WebKit
Pull request: https://github.com/WebKit/WebKit/pull/3412
<rdar://problem/99087807>
Pull request: https://github.com/WebKit/WebKit/pull/3673
Committed 254195@main (a728674047d7): <https://commits.webkit.org/254195@main> Reviewed commits have been landed. Closing PR #3673 and removing active labels.