Re: [csswg-drafts] [cssom-view-1] Option for scrollIntoView that doesn't propagate to root (#9452)

This would be fantastic. We currently maintain a very complicated scroll into view function in React Aria because the native one causes the body to scroll when modals/popovers are open and scroll locking is enabled (the body has `overflow: hidden`). This is hard because we need to keep up with additions to CSS that can affect scrolling, such as `scroll-padding` and `scroll-margin`. Would be great to have a solution built into browsers.

I like the idea of a boundary element, and Tab's suggestions make sense to me.

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


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

Received on Thursday, 5 December 2024 03:34:56 UTC