[csswg-drafts] [css-scroll-anchoring] Does anchoring work on elements, or boxes? (#13564)

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

== [css-scroll-anchoring] Does anchoring work on elements, or boxes? ==
The [anchor node algorithm](https://drafts.csswg.org/css-scroll-anchoring/#anchor-node-selection) is written in terms of nodes and elements, but it seems that UAs implement in terms of layout boxes.

This is visible when style changes cause layout boxes to be destroyed and re-created; browsers don't scroll anchor if the anchor's subtree temporarily becomes `display: none`.

Test case at https://codepen.io/smfr/pen/JoRoKZQ


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13564 using your GitHub account


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

Received on Thursday, 26 February 2026 02:28:00 UTC