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

Re: [csswg-drafts] [css-position] Clarify whether sticky-positioned elements' residual position can cause scrollbars to remain, when a tall thing is removed

From: Daniel Holbert via GitHub <sysbot+gh@w3.org>
Date: Mon, 18 Jun 2018 17:42:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-398137046-1529343753-sysbot+gh@w3.org>
The current spec text seems to be written from the perspective of "how do I determine the sticky position, given static content and dynamic changes to the scrollbar position".  But I don't think it says how (or whether) to update the sticky position when an element is removed from the page, when that element happens to be the thing that was propping up the scrollable area and indirectly imposing a sticky position.

Also worth noting: Chrome is a bit schizophrenic here as well -- it has a scrollbar at first for [both](https://bugzilla.mozilla.org/attachment.cgi?id=8979827) [testcases](https://bugzilla.mozilla.org/attachment.cgi?id=8982586), BUT if I resize the browser-window horizontally, then it immediately drops the scrollbar and resets `scrollTop` to 0 on the scrollable area.  I'll file a Chrome bug for that inconsistency.

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2794#issuecomment-398137046 using your GitHub account
Received on Monday, 18 June 2018 17:42:36 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 19 September 2019 01:18:58 UTC