Disable scroll-anchoring of input::placeholder when suggestion displayed.
The placeholder's style and value gets manipulated by autofill when previewing suggestions. Due to the dynamic style changing of the placeholder, disabling scroll anchoring on a placeholder could prevent occasional scroll adjustment. Note that the scroll anchoring gets disabled on a placeholder within an input element, but not on the input element itself, which is still perfectly eligible to become a scroll anchor. Moreover, as the position of the input element is more stable, it could be a better choice for for a scroll anchor. BUG=1033423 TEST=run_web_tests.py fast/forms/text/input-appearance-scroll-position.html Change-Id: I981599b781f9c010e2a11d01f23f5db1a937cd56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1966153Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Mason Freed <masonfreed@chromium.org> Reviewed-by:
Nick Burris <nburris@chromium.org> Commit-Queue: Mason Freed <masonfreed@chromium.org> Auto-Submit: Andrei Polushin <anpol@yandex-team.ru> Cr-Commit-Position: refs/heads/master@{#727186}
Showing
Please register or sign in to comment