- From: Robert Flack via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Oct 2024 19:41:38 +0000
- To: public-css-archive@w3.org
So the proposal is: We track the last scroll targeted element within each scrolling container, initially null. When any scroll of a scroll container occurs: 1. If the scroll targets a particular element, (e.g. scrollIntoView, fragment navigation), then that element is used as the last scroll targeted element. 2. Otherwise, if the element snaps to a particular element, that element is selected as the last scroll targeted element. 3. Otherwise, it is set to null. This last scroll targeted element is used as the [anchor node](https://drafts.csswg.org/css-scroll-anchoring/#anchor-node-selection) for scroll anchoring, and as the start point to search for the current scroll target for scroll markers. Some details: 1. If the target is in a nested scroller, should we track the nested scroller instead? I think it's strictly more powerful if we track the targeted element but could see an argument for this. 2. If the target node is removed, presumably we want to forget about it at that point, but this does mean a moved node would be lost. -- GitHub Notification of comment by flackr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10738#issuecomment-2448204794 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 30 October 2024 19:41:39 UTC