Re: [csswg-drafts] [css-position][css-position-3] Padding on scroll container affects (and inconsistently) the offset behavior of sticky position (#3352)

> You can use non-visible overflow in the html to force body's overflow to apply to the body.

When succumbing to using this, you often lose viewport scrolling benefits of certain browsers, like scrolling making the visual viewport larger on iOS or clicking the top bar in opera to perform a "scroll to the top" action.

This may all be on the up and up as far as language deep within the specs, but I still stand by a need to more clearly document these affects in [css-position-3](https://drafts.csswg.org/css-position-3/#sticky-pos) in regards to the description of box offset properties and content boxes from scroll containers. So people know what `top: var(--fixed-header-height)` would mean for them compared to `top: calc(var(--scroll-container-padding-top) - var(--fixed-header-height))`.

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

Received on Wednesday, 28 November 2018 19:35:18 UTC