You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To scroll a target into view target, which is an Element or Range, with a scroll behavior behavior, a block flow direction position block, and an inline base direction position inline, means to run these steps for each ancestor element or viewport that establishes a scrolling box scrolling box, in order of innermost to outermost scrolling box:
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
The text was updated successfully, but these errors were encountered: