Re: [csswg-drafts] [css-position-3] Making a stickypos in a scroller also see the viewport edges (#8286)

A "just works" solution (that sticks to nearest scroller only in the relevant axis) will break existing usage.

Imagine a container component that has a max height, and will show a scrollbar in y axis if its content exceeds that height. So it may or may not scroll in the y axis. And the container has a sticky child with `top` set. It will be very weird if, eg there are several of this component in the page, and then when scrolling the page, some nodes stick to the viewport while some don't.

So a new syntax seems necessary, and +1 to `position-container`.

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


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

Received on Monday, 26 February 2024 15:28:52 UTC