Re: [csswg-drafts] [css-overflow-5] Limit scrolling to the associated scroll container when activating a marker (#11138)

Yes, I think we absolutely need to add the "stop at this element" option behavior to the scrolling APIs, and auto-invoke it for marker activation to stop at the scroll marker group container.

So, proposals:

1. Accept the proposal in #1522, defining a new `Element.scrollingParent` accessor that returns the nearest scrollable ancestor of an element.
2. Then, accept the proposal in #9452, defining a new `container` option for the `scrollIntoView()` method, taking an optional Element to stop at. (The previous one makes it easy to just stop at the nearest scroller.)
3. Then, accept the proposal here, to make scroll-marker scrolling automatically stop at the scroll marker group container.

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


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

Received on Tuesday, 19 November 2024 22:57:01 UTC