[csswg-drafts] [cssom-view] Add a none value to the ScrollBehavior

jihyerish has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] Add a none value to the ScrollBehavior ==
In the CSSOM, there is a [ScrollIntoViewOptions](https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions) and it takes  [ScrollBehavior](https://drafts.csswg.org/cssom-view/#enumdef-scrollbehavior) and [ScrollLogicalPosition](https://drafts.csswg.org/cssom-view/#enumdef-scrolllogicalposition).

I think ScrollBehavior could have "none" to specify not to scroll a scrolling box.
Adding a "none" value could help developer prevent unintentional scrolling.

In fact, there is a discussion https://github.com/whatwg/html/pull/2787 about adding scrollOptions for Element.focus().
The suggested scrollOptions need to have "none" value for specifying the scrolling effect and instead of defining new scrolling behavior, it seems reasonable to reference [ScrollBehavior](https://drafts.csswg.org/cssom-view/#enumdef-scrollbehavior). So how about adding "none" value to it?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1608 using your GitHub account

Received on Monday, 17 July 2017 02:45:41 UTC