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

> @Konrud If you want the height: 720px, then you can make the body be the scroll container, e.g. html, body {overflow: auto} (html is needed to avoid propagation)

This is if you are ok with your scrollport not matching the size of the window, leaving extra unused space in the viewport or worse cutting off parts of this body scrollport when the viewport is shorter than 720px. You also lose browser viewport/root scroller "conveniences", such as operas and iOS Safaris ability to click on the browsers chrome to scroll to the top of the document or chromes overscrolling rubber banding.

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

Received on Saturday, 18 May 2019 02:06:54 UTC