Re: [csswg-drafts] [css-position][css-sticky] Position: sticky doesn't work when it has several HTMLElements with margin before it (#3923)

@Konrud Your example has less to do with margins and more to do with the fact that the ancestor within which your sticky element is attempting to stick[[1](https://drafts.csswg.org/css-position-3/#sticky-pos)] has a height set too short to be in view when scrolling down to view/reach the sticky element. In other words, remove the `height:720px;` declaration on your `body` element and everything should behave as expected.

[[1] Creation of Sticky-Constraint Rectangles](https://drafts.csswg.org/css-position-3/#sticky-pos)

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

Received on Saturday, 11 May 2019 12:09:30 UTC