Re: [csswg-drafts] [css-scroll-snap] Difficult to use snap areas which are larger than the scrollport (#6863)

Yeah, we realized when discussing this that the current spec definition isn't correct, but we've had a lot of trouble figuring out what it *should* be.

The constraints we're trying to apply are:

1. *Every* part of a snap area *must* be visible from some snap position. This is strictly required.
2. We want to add the minimum number of additional snap positions to satisfy 1.
3. We don't want to be "arbitrary"; like, don't add snap points ever 20px or something, because the user didn't ask for that.

Figuring out how to turn those constraints into straightforward rules has turned out to be far more complex than expected.

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


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

Received on Thursday, 3 February 2022 19:27:08 UTC