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

Re: [csswg-drafts] [css-selectors] :stuck pseudo-class feature suggestion

From: Robert Utasi via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Jan 2018 23:12:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-359963820-1516749136-sysbot+gh@w3.org>
I've worked around this behavior, and run in to some troubleshots.

the position: sticky behaves as a position: relative element by the spec. So when we change the height of the :stuck element, the complete layout changes based on the new height. As a workaround I defined margin-bottom for the :stuck element.
Here is the workaround code:


I've added 1 indicator to the code, but this is against the separation theory of the style and html structure.
A compromised solution would be useful whilst this ticket is closed.

GitHub Notification of comment by hunboy
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1656#issuecomment-359963820 using your GitHub account
Received on Tuesday, 23 January 2018 23:12:20 UTC

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