Re: [csswg-drafts] [css-scroll-snap] Consider more specific guidance for scroll-into-view

Thanks for the clarification!
Does this also apply to element.scrollTo(x, y) and element.scrollBy(dx, dy)?

Correct me if I'm wrong.
1. If it's a smooth-scroll, the scroller first animates to the input position, then animates to the snap position.
2. If it's an instant-scroll, the scroller directly goes to the snap position.
3. When we call scrollIntoView() without options, it would still use the default start-alignment[1]. And if it defines snap-alignment-end, it would land on the end-alignment after SIV.

[1] https://drafts.csswg.org/cssom-view-1/#enumdef-scrolllogicalposition

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

Received on Friday, 12 January 2018 19:02:24 UTC