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

Re: [cssom-view] Allowing scrollIntoView() to only scroll the nearest scroll container

From: Simon Pieters <simonp@opera.com>
Date: Fri, 19 Sep 2014 13:13:32 +0200
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style list" <www-style@w3.org>
Message-ID: <op.xmflguz9idj3kv@simons-mbp>
On Thu, 18 Sep 2014 20:08:25 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

>> scrollIntoView scrolls both elements and frames. So it's a bit more
>> complicated.
>>
>> Do we need to support more than "scroll everything" and "only scroll the
>> nearest scrollable thing"?
>
> We could probably get away with just that, but I'd be afraid of it
> being fragile to application changes; adding an "overflow:hidden"
> between the element and its scrolling container would hijack the
> scroll.  We already suffer from this problem with abspos, and I'd
> rather not repeat it.

OK. So how about:

* "scroll everything"
* "scroll everything up to the nearest frame"
* "scroll everything up the specified element (same-document only)"

Or don't we need the nearest frame?

-- 
Simon Pieters
Opera Software
Received on Friday, 19 September 2014 11:14:08 UTC

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