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

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