Skip to content

[cssom-view] ScrollIntoViewOptions "nearest" description #4918

Open
@zbianca

Description

@zbianca

https://drafts.csswg.org/cssom-view/#element-scrolling-members

  1. Otherwise, block is "nearest":​

→ If element edge A and element edge B are both outside scrolling box edge A and scrolling box edge B
          Do nothing.

By this description nothing is done only when the element is bigger than the viewport.
However, another situation when nothing is done is when both edges are inside the box edges.
The same is valid for when inline is "nearest" on item 9.8.

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