- From: Roman Komarov via GitHub <noreply@w3.org>
- Date: Wed, 13 May 2026 08:18:55 +0000
- To: public-css-archive@w3.org
When I was first trying the `scroll-state(stuck)`, I also stumbled upon this problem, but it was when it was only in Canary, and I postponed looking into it, thinking it might be just an implementation bug, oops. When I was implementing this effect with scroll-driven animations, I had to explicitly not adjust the layout — https://kizu.dev/scroll-driven-animations/#stuck-states-for-the-sticky-headers — the workaround there was to use transforms whenever you wanted to change the size of something. I would love if there was a way to make some element use the “last remembered unstuck size” though — although, yeah, I think you’d want to choose _which_ state is the one you’d want to use as the one giving the dimensions, and that will not necessarily be the initial one, and sometimes you’d want to make it so the “stuck” size is the one that element would have. -- GitHub Notification of comment by kizu Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13898#issuecomment-4438850379 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 May 2026 08:18:59 UTC