Store block-start offset in scroll anchor.
Storing a purely physical offset was problematic when in vertical-rl writing-mode, if the viewport size changes. We were storing the X coordinate relative to the left edge of the visible contents inside the scrollport. However, in vertical-rl writing-mode the block-start is at the right side of the scrollport. If the viewport width changed, the distance from the left edge to the anchored element would also change, even though the scroll offset remained exactly the same, and we'd mess up the scroll offset. Bug: 1124195 Change-Id: Id91a25012da2d0cbd803e543b6cb02ba66eb20e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2390380Reviewed-by:Stefan Zager <szager@chromium.org> Reviewed-by:
Steve Kobes <skobes@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#804469}
Showing
Please register or sign in to comment