Skip to content

[cssom-view] Add a none value to the ScrollBehavior #1608

@jihyerish

Description

@jihyerish

In the CSSOM, there is a ScrollIntoViewOptions and it takes ScrollBehavior and ScrollLogicalPosition.

I think ScrollBehavior needs to have "none" to specify not to scroll an element.
The "none" value could help developer prevent unintentional scrolling.

In fact, there is a discussion whatwg/html#2787 about adding scrollOptions for Element.focus().
The suggested scrollOptions has "none" value for specifying not to scroll the element. Instead of defining new scrolling behavior, it seems reasonable to reference ScrollBehavior in here. So how about adding "none" value to it?

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