Open flackr opened 3 weeks ago
many many folks at CSS Day expressed this as an issue, as the API is what they want, but the side effects of effecting each ancestor are not what they want.
there's also scrollIntoViewIfNeeded()
that could use the same property
Yep I was one of them 😊 love to see this coming as an option. Thanks for working on it.
Right now the cssom-view spec says that (emphasis mine):
There are many use cases when building components where it would be nice to only scroll the scroller associated with that component. I propose we add a property to ScrollIntoViewOptions which limits the scroll to only the nearest scrolling container. E.g.
I thought this was already filed but I couldn't find it in search so filing again.
Options to consider:
We could also have some combination of these options, e.g. the the named parameter could optionally take an element.