Re: [csswg-drafts] [css-contain] `scroll-state(stuck)` CQs can easily cause flickering that is very hard to work around (#13898)

Here's a [demo](https://codepen.io/lilles/pen/VYmjXgJ) of how scroll-anchoring ignores sticky positioned elements (per spec) and adjusts the scroll offset to keep the in-flow content after the sticky pos at the same position, which leads to the sticky-pos no longer be sticky. Uncomment the `overflow-anchor` declaration in the demo to see the difference.


-- 
GitHub Notification of comment by lilles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13898#issuecomment-4428986951 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 12 May 2026 09:09:01 UTC