Skip to content

[cssom-view] scrollIntoView container spec unclear #12260

Open
@zcorpan

Description

@zcorpan

#11673 added container dictionary member to scrollIntoView(options). From #9452 it seems there was discussion about supporting specifying a particular element directly, but then decided to only support the strings "nearest" and "all". However, the spec seems to have artifacts of both.

https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions

If the container dictionary member of options,

If the container is what?

set container to this element.

What does "this element" mean?

https://drafts.csswg.org/cssom-view/#scroll-a-target-into-view

and an optional containing Element to stop scrolling after reaching container

If container is not null and scrolling box is a shadow-including inclusive ancestor of container, abort the rest of these steps.

What if the nearest scrolling box is a viewport?

cc @flackr @tabatkins

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