Store last scroll anchor position in writing-mode relative coordinates

RESOLVED FIXED in Firefox 66

Status

()

enhancement
P3
normal
RESOLVED FIXED
6 months ago
6 months ago

People

(Reporter: rhunt, Assigned: rhunt)

Tracking

(Depends on 1 bug, Blocks 1 bug)

unspecified
mozilla66
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox66 fixed)

Details

Attachments

(1 attachment)

We currently store the last anchor position in absolute (top-left corner) coordinates. This isn't correct based on the spec.

This commits changes ScrollAnchorContainer to store the offset of the block-start-edge
of the anchor node to the block-start-edge of the scroll frame, instead of the offsets
of physical top-left corners.

The logic to clamp the negative portions of scroll anchor bounding rects is also amended
to only clamp the portion that is beyond the border-start-edge in the block axis.

The 'start-edge-in-block-layout-direction.html' test now passes with these changes. It
was thought that this change was failing due to differences in 'scrollLeft/scrollTop'
but it seems that was a misdiagnosis.
Priority: -- → P3
Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/57aacc322be1
Store last scroll anchor position in writing-mode relative coordinates. r=dholbert
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Depends on: 1524064
You need to log in before you can comment on or make changes to this bug.