[css-snappoints] scroll-snap and scrollTo/scrollIntoView interactions

Hi,

The current specification  <http://dev.w3.org/csswg/css-snappoints <http://dev.w3.org/csswg/css-snappoints>> is silent on what special scroll snap behavior should be triggered when a page or element with scroll snap points is manipulated through window.scrollTo or element.scrollIntoView.

Since many of the window.scrollTo/element.scrollTop/element.scrollLeft uses are to manually animate scrolls, we probably do not want to trigger snapping for these cases.

It’s less clear what to do for scrollIntoView. If aligning with the top or bottom of a view does not align with any defined scroll snap points for that view, should we adjust the positioning to match the closest snap point?

Thanks,

-Brent

Received on Friday, 19 June 2015 08:53:16 UTC