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

Re: [cssom-view] Specifying scroll options for scrollIntoView() without the "top" argument

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 26 Jul 2014 23:25:06 -0700
Message-ID: <CAAWBYDBCe0udLq3P49w22ypf07e=mSRoqy0Vy+29QMduTgY3Pw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Simon Pieters <simonp@opera.com>, www-style list <www-style@w3.org>
On Sat, Jul 26, 2014 at 5:36 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 7/26/14, 4:28 AM, Simon Pieters wrote:
>> Hmm, hold on. How do we retain the behavior of scrollIntoView(undefined)?
> Argh.  Right you are.  There is no way to do that with a dictionary allowed
> as the first argument.
> Yay legacy APIs.  :(

Oh my god. That is just the absolute worst thing.

It's still possible to do, of course, if we're willing to abandon
WebIDL handling and just use an "any" type that is introspected in
prose.  I think it's worthwhile to have a hacky interface description
in service of a much less hacky interface.

Received on Sunday, 27 July 2014 06:26:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC