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

@valtlai @WangXBruc I don't exactly condone this fix, but if you really need some sort of nested separate scroller with separate axis treatment, this is the best approach yet.

@OliverJAsh @emilio Gecko bug for renaming/implementing `overflow: clip`.

@Baedda Tangentially...
> The fact that overflow: hidden; on an ancestor makes this container become the new scrolling container for the sticky element, takes away the opportunity to clip the sticky container in any way.

There are other ways to "clip" the sticky container, by using `clip-path`, even though the "overflow" can affect the geometry of scrollable content, it still behaves well in most cases. 

> No clue for in combination with scroll-snap on parent. Page with 100vh per section, sticky as dynamic css for header nav part of first section overflows the scroll bar.

You can use `calc()` to offset a "fullscreen" height with a sticky nav. But some browsers (iOS safari) don't report `100vh` as the height of the unscrolled viewport. (

@Baedda @joma74 check these demos for examples of sticky/clip-path/calc()/vh

GitHub Notification of comment by jonjohnjohnson
Please view or discuss this issue at using your GitHub account

Received on Thursday, 25 April 2019 23:24:50 UTC