Re: [csswg-drafts] [cssom-view-1] Can scrollIntoView param type be more specifc?

Thanks @bzbarsky. Yes, `undefined` is intended to be like `false`. There is a comment in the source; I should change that to a visible comment:

```
<!-- scrollIntoView() means arg=true but scrollIntoView(undefined) means arg=false, to align with impls. -->
```

Another thing is that passing `{}` is intended to be like `{ block: "center", inline: "center" }`, because that is argued to be a common case in https://www.w3.org/Bugs/Public/show_bug.cgi?id=17152

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

Received on Monday, 5 June 2017 10:39:53 UTC