W3C home > Mailing lists > Public > www-style@w3.org > June 2015

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

From: Brent Fulgham <bfulgham@apple.com>
Date: Thu, 18 Jun 2015 09:32:09 -0700
Message-id: <C8DFA8B2-A2F1-490A-A25A-04A3C11476EB@apple.com>
To: www-style@w3.org

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?


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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC