Re: [csswg-drafts] [cssom-view] Add ScrollIntoViewMode ("always", "if-needed"); add FocusScrollOptions (#5677)

Yes sure.

I have made an accordion library which renders 100s of list but it get's to bottom and user expands it, it can't automatically scroll into view.

Demo screen recording - 

https://user-images.githubusercontent.com/23727670/155487582-a8518bd2-7f35-400e-b663-00e85b3a8dd8.mov

If I add scrollIntoView all the elements will move even if it is not needed, and `scrollIntoViewIfNeeded` doesn't have smooth scrolling option and is not supported in majority of the browsers.

It would be helpful in such cases.


-- 
GitHub Notification of comment by ShivamJoker
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/5677#issuecomment-1049611881 using your GitHub account


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

Received on Thursday, 24 February 2022 08:33:49 UTC