[csswg-drafts] [css-scroll-snap] Multiple nested scrollers and a "default" scrollIntoView()?

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-snap] Multiple nested scrollers and a "default" scrollIntoView()? ==
Our intention in #1708 is that scrollIntoView()'s alignment arg is honored if specified, but if it's unspecified we honor scroll-snap; only when both are unspecified do we use the "default" sIV() alignment.

What do we do when the targetted element is nested into multiple scrollable elements, tho? Each one of them needs to be scrolled to bring the element into view.  When sIV() doesn't specify a particular alignment, how should we treat all the nested scrollers? In particular, what if *some* of them have scroll-snap specified, while others don't?

Honoring scroll-snap on the scrollers that have it, and default-aligning the rest, seems like probably the best behavior, but it's also significantly more complicated for implementations, as they have to collect and track more data as they execute the scroll operation.  What should we do?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2593 using your GitHub account

Received on Tuesday, 17 April 2018 20:40:45 UTC