Re: [csswg-drafts] [css-scroll-snap] Programmatically scroll to snap points (#8558)

This would be really useful đŸ‘đŸ»

At the moment we have to infer the position of the snap points, which is somewhat cumbersome. It involves getting the following values:
* the used ‘scroll-snap-align’ of the elements
* offsetWidth/offsetHeight of the elements
* the used ‘scroll-padding’ of the container
* the offsetWidth/offsetHeight of the scroll container. 
We also have to take into account that some snap points might be unreachable. 



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


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

Received on Sunday, 12 March 2023 14:43:13 UTC