Open Bug 2011777 Opened 16 days ago Updated 14 hours ago

Codepen demo with `anchor-center` does not center when anchor is in non-initial scroll position

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

ASSIGNED

People

(Reporter: dshin, Assigned: dshin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

(From https://github.com/w3c/csswg-drafts/issues/13353)
STR: Load demo, scroll right so the button is in view, then click on the button.
Expected: Positioned element positions on bottom center of the anchor
Actual: Positioned element positioned on bottom of the anchor, but seems to position to the right edge of screen.

Attached file Reduced testcase

We need to account for the relative movement of the anchor w.r.t. the containing block, like we do for position-area.

Assignee: nobody → dshin
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: