Closed Bug 1520344 Opened 5 years ago Closed 5 years ago

Store last scroll anchor position in writing-mode relative coordinates

Categories

(Core :: Layout: Scrolling and Overflow, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: rhunt, Assigned: rhunt)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

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: 5 years 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.

Attachment

General

Created:
Updated:
Size: