W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

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

From: Sandra Yunjia Sun via GitHub <sysbot+gh@w3.org>
Date: Fri, 12 Jan 2018 19:02:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-357325385-1515783736-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC