Re: [csswg-drafts] [cssom-view]HTMLELEMENT#scrollIntoView and sticky elements

Tangentially related. #1459 is about scrolling sticky elements.

I'm talking about scrolling a regular element into view which has sticky ancestors which *may*, when the element is scrolled into view, reduce the scrolling area viewport.

It's a difficult one. Because if there's a <code>top:0</code> sticky element, then that definitely shrinks the viewport. But what if it's a weird one like <code>top: 5px</code>? or <code>top: 50%</code>? There may be multiple stickies occluding the viewport, creating multiple areas which could be zones for scrolling into view.

It's so weird that behaviour has to be strictly defined, otherwise different browser vendors will do all kinds of different things.

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

Received on Friday, 14 September 2018 08:41:36 UTC