[wpt-sync] Sync PR 25362 - Store block-start offset in scroll anchor.
Categories
(Core :: Layout: Scrolling and Overflow, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 25362 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/25362
Details from upstream follow.
b'Morten Stenshorne <mstensho@chromium.org>' wrote:
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/2390380
WPT-Export-Revision: b1eb3b37b7a4ea089949aa34a75b9c036103321e
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests
Status Summary
Firefox
PASS: 2
Chrome
FAIL: 2
Safari
PASS: 2
Description
•