W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

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

From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
Date: Wed, 28 Nov 2018 19:35:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-442576148-1543433715-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:39 UTC