Re: [csswg-drafts] [css-anchor-position-1] Remembered Scroll Offset + Scrollable Overflow (#12898)

> > After layout has been performed for abspos, it is additionally shifted by the default scroll shift, as if affected by a transform (before any other transforms).
> 
> Transforms affect the scrollable overflow area.

So something like this: [positioned-scroll-emulate-transform.html](https://github.com/user-attachments/files/22604816/positioned-scroll-emulate-transform.html) where scrollHeight changes as the "positioned element" scrolls around, right?

OTOH, it's my understanding that positioned elements are laid out at the remembered scroll offset position, as per my read of [this](https://drafts.csswg.org/css-anchor-position-1/#anchor-recalculation-point):

> All [anchor references](https://drafts.csswg.org/css-anchor-position-1/#anchor-reference) are calculated as if all [scroll containers](https://drafts.csswg.org/css-overflow-3/#scroll-container) were at their [initial scroll position](https://drafts.csswg.org/css-overflow-3/#initial-scroll-position), and then have their associated [remembered scroll offset](https://drafts.csswg.org/css-anchor-position-1/#remembered-scroll-offset) added to them.

Yes, transform-affected scroll area should let people scroll to the positioned element, but there may be a differing portion of scroll overflows contributed by:

* The positioned element's layout position, based on the remembered scroll offset. this will not change until a reflow.
* Scrollable overflow based on "as if by transform." This will go away as the scrollers move and positioned elements no longer overflow.

-- 
GitHub Notification of comment by dshin-moz
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12898#issuecomment-3363407161 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 2 October 2025 22:18:30 UTC