Re: [csswg-drafts] [cssom-view] Default values of ScrollIntoViewOptions contradicts in spec

The intent is to provide an easy way to do center-center, since that is a common case, but legacy requires nearest-start for no-argument or `true` calls.

i.e.
```
elm.scrollIntoView({}); // center-center
elm.scrollIntoView(); // nearest-start
elm.scrollIntoView(true); // nearest-start
elm.scrollIntoView(false); // nearest-end
```

I would also recommend reading the editor's draft: https://drafts.csswg.org/cssom-view/

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1353#issuecomment-303062133 using your GitHub account

Received on Monday, 22 May 2017 10:29:55 UTC