Re: [csswg-drafts] [css-anchor-position-1] Define scroll interaction better. (#10858)

For the timing, see issue #10796.

I did the edits for `scroll-state()` container queries, but not scroll-animations or anchor positioning.

What's missing apart from those edits is to invoke [Post-Layout State Snapshotting](https://drafts.csswg.org/cssom-view/#post-layout-snapshot) at the right places in the event loop in the HTML spec. This was discussed by @emilio @flackr and myself without a conclusion (unclear where it should be invoked relative to resizeObservers and whether it should be invoked for each resizeObserver loop) other than it should happen on a clean layout.

Blink currently snapshot all of scroll timelines, anchor positioning, and scroll-state() queries once with a potential dirty style/layout tree, and once after a style and layout update as part of the resizeObserver loop in HTML.


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


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

Received on Tuesday, 5 August 2025 13:58:02 UTC