Re: [csswg-drafts] [css3 positioning] support position:sticky inside an overflow:hidden|auto on general parents (#865)

@tabatkins & @coreyworrell I think you are talking about what I addressed in https://github.com/w3c/csswg-drafts/issues/865#issuecomment-488522567.

> "[css-positioned-3] expand sticky logic to allow sticky positioning behavior between nested scrollers, specifically cross axis"

(And honestly, there is a strange president for nested sticky logic that shares a containing block, see http://output.jsbin.com/zeyanef/7, best in webkit/firefox. Though, this example doesn't share the containing block through a scroll container, but instead through sticky ancestors.)

This seems to be the only remaining issue in the thread and should simply be broken out, allowing this thread to be closed. Because we have `overflow:clip` solving the general ancestor between the sticky element and it's scroll container (containing block) issue. And browsers have now consolidated on a solution for `scrollingElement` weirdness with horizontal overflow between the `html` & `body` elements, where an author just needs to make sure `body` isn't an intermediate scroll container between the sticky element and the `html` `scrollingElement`.

Final note, it really would be a bad idea to retroactively make `overflow:hidden` elements do what most in this thread desire for the reasons I stated in https://github.com/w3c/csswg-drafts/issues/865#issuecomment-387908285.

> When using a modal view that programmatically turns off/on scrolling with hidden/auto a sticky element would jump around the screen between the swapping scrolling contexts.

This shows exactly why the specified behavior of `overflow:clip` is what is really needed, it just needs to get implemented everywhere. Elements with `overflow:hidden` are still scrolling elements even if only programmatically.

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

Received on Wednesday, 29 April 2020 18:31:34 UTC