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

Ah, you're right, my fault. But then how about `void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = true);`? 

[Web IDL 2.2.3](https://heycam.github.io/webidl/#idl-operations)

>Such arguments are always considered to have a default value of an empty dictionary, unless otherwise specified.

>Dictionary types cannot have a default value specified explicitly, so the “unless otherwise specified” clause above can only be invoked for a union type that has a dictionary type as one of its flattened member types.

So I think this way it won't get the unwanted default empty dictionary value `{}`.

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

Received on Friday, 2 June 2017 11:15:57 UTC