Re: [csswg-drafts] [css-scroll-snap-1] Improve or clarify nested snap behaviors (#9187)

> Looking at your example in [#9187 (comment)](https://github.com/w3c/csswg-drafts/issues/9187#issuecomment-1681194746) I think the most sensible behavior might be to extend the snap areas for #b and #c to extend through to the next snap position. So you'd have one snap position at the top of #a, which allows scrolling freely to the top of #b. Then another position starting at the top of #b which scrolls freely to the top of #c. And a third one from the top of #c to the bottom of #a.

I don't think that this will be what authors want if they have a long #a and short #b and #c (e.g. inline images). It's asymmetric, coming from below there is only a snap effect on leaving the image but not entering it. Coming from above you snap on entering but not leaving. We could do this only when the gap between #b and #c is shorter than a scrollport but that would result in a strange change in behavior when content sizes are sometimes just below / just above one scrollport.

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


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

Received on Wednesday, 8 November 2023 15:10:12 UTC