W3C home > Mailing lists > Public > www-style@w3.org > July 2014

[cssom-view] Element.scrollIntoView should just have the "top" argument optional

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 11 Jul 2014 16:36:20 -0400
Message-ID: <53C04AC4.70607@mit.edu>
To: www-style list <www-style@w3.org>
Instead of having the current IDL and then prose that says what to do 
when called with 0 args, why not just do:

   void scrollIntoView(optional boolean top = true, optional 
ScrollOptions options);

?

Unless the intent is to have calls like this:

   scrollIntoView(undefined);

be equivalent to scrollIntoView(false), of course...

-Boris
Received on Friday, 11 July 2014 20:36:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC