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

Nope, unfortunately.

WebIDL requires dictionary arguments (unless they have required members) to be marked as `optional`. But legacy requires `scrollIntoView()` to be like `scrollIntoView(true)`. To achieve this the spec uses an overload and a union, and then converts the object to a dictionary in prose. There's no IDL syntax to achieve this weird-but-required-for-compat behavior.

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

Received on Friday, 2 June 2017 09:18:24 UTC