[TextUrlFragments] Improve scroll into view and highlighting of target.
I previously changed the scroll into view behavior to edge-aligned, with the idea that we don't want to scroll to the middle of a long text range, but this results in the scroll position being at the bottom of the page for shorter text ranges. This patch reverts to centering the text range, but specifically the top of the text range to handle the case of long ranges. Also changes the text highlight color to light yellow instead of orange as recommended. Bug: 958545 958544 Change-Id: I8d35d916acec0199db2a33a6d05089311129d66d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1592399 Commit-Queue: Nick Burris <nburris@chromium.org> Reviewed-by:David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#656404}
Showing
Please register or sign in to comment