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

dshin-moz has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position-1] Remembered Scroll Offset + Scrollable Overflow ==
Scroll + remembered scroll offset interact in WPT `anchor-scroll-chained-002.html`.
I believe the reference case is expecting the following:

* JS-induced scroll happens
* Then, the anchor recalculation point is hit
* Then, scrollable overflow for `#scroller1` is computed.
 
This results in a smaller `scroller1.scrollHeight`, than say, inserting a rAF before the existing JS.

See attached test case, modified for more visibility. [asc2.html](https://github.com/user-attachments/files/22662005/asc2.html)

Testcase aside, could this mean different scrollbar sizes depending on loading time of a website?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12898 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 15:06:14 UTC