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

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 using your GitHub account

Received on Tuesday, 23 January 2018 23:12:20 UTC