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

I think that giving the outermost viewport special abilities could be problematic for sites which use `overflow` scrollers for particular parts of their content (e.g. gmail doesn't have a scrollable root view) which would need to use frames I guess to establish viewport scrollers and get this behavior?

In my ideal world sticky would be able to offset based on the nearest scroller that has scrolls in the particular axis (e.g. top/bottom find the nearest overflow-y scroller). I recognize though that the situation we have though is [overflow in one axis implies overflow in the other](https://www.w3.org/TR/css-overflow-3/#overflow-properties:~:text=The%20visible/clip%20values%20of%20overflow%20compute%20to%20auto/hidden%20(respectively)%20if%20one%20of%20overflow%2Dx%20or%20overflow%2Dy%20is%20neither%20visible%20nor%20clip.) so it's not a simple change.

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


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

Received on Monday, 23 January 2023 18:28:42 UTC