Re: [csswg-drafts] [css-scroll-snap-2] How should competing scroll-start-targets be resolved? (#10774)

> I could use some help clarifying the concept of "items that snap such that they're not partially in view but don't have a particular affinity for aligning only on one side of the scrollport." Is this similar to scrollIntoView's concept of nearest where if the element is already partially in view, no scrolling happens?

Yes, that is exactly right. `scroll-snap-align: nearest` would try to snap the element to the start and end alignment so that the scroll does not rest in a position with the element partially clipped by the scrolling container.

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


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

Received on Wednesday, 4 September 2024 19:06:34 UTC