[csswg-drafts] [cssom-view] scrollIntoView()

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

== [cssom-view] scrollIntoView() ==
Why isn't the IDL as follows:

    void scrollIntoView(optional (boolean or ScrollToOptions) arg = false);

Overloading is better to avoid when possible.

And the dictionary having different defaults than false also seems wrong. Passing {} shouldn't have different results from passing undefined or passing nothing at all.

(Via https://bugzilla.mozilla.org/show_bug.cgi?id=1389274.)

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

Received on Monday, 14 August 2017 07:47:05 UTC