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

@jonjohnjohnson thank you for your response.
 But don't you think that is a bug or I should say an omission in spec?
 I mean I think I should be able to declare `width` on the parent element and `sticky` element should still work as expected, especially since `width: 720px;` it's not a small value at all and should be enough for the `sticky` element. 
Regarding the reference to the spec that you provided. I've read this one and I know that if you define `overflow: auto;` on both `<body>` and `<html>` elements, `sticky` element will work as expected. This has to do with so-called `scrolling-box` ([https://drafts.csswg.org/cssom-view-1/#scrolling-box](https://drafts.csswg.org/cssom-view-1/#scrolling-box)).
 But I haven't found anything to do with the `height` restriction.

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

Received on Saturday, 11 May 2019 12:44:32 UTC