Skip to content

[css-overflow-5] Limit scrolling to the associated scroll container when activating a marker #11138

Closed
@flackr

Description

@flackr

Currently, when a scroll marker is activated, the activation behavior scrolls the scroll target into view. This behavior right now will scroll every scrolling box up to the root to the target.

I think that it is quite common to expect that the scroll stops at the managed scroll container. E.g. @bakura10 from twitter mentioned this expectation in #9452 (comment). In #9452 I proposed adding this option to the scroll into view api.

The question here is, should we restrict the scroll into view for activation to stop at the scroll marker group container? This would mean that we would not ensure that the group container is currently scrolled into view in all of it's ancestor scrolling containers.

If we don't restrict this, you could end up in a degenerate situation when the scroll markers are above the targeted scroll marker group container as scrolling the ancestors of the group container to position the group container into view would naturally scroll the markers out of view.

I propose we do this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions