Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cssom-view-1] Apply scroll snap to scroll-into-view-position #11073

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cssom-view-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,10 @@ run the following steps:
<dt>If <var>element edge D</var> is outside <var>scrolling box edge D</var> and <var>element width</var> is less than <var>scrolling box width</var>
<dd>Align <var>element edge D</var> with <var>scrolling box edge D</var>.
</dl>
1. If <var>target</var> is an <a for="/">Element</a>, and the target element defines some <a>scroll snap positions</a>,
then the user agent must <a>scroll snap</a> the resulting <var>position</var> to one of that element’s <a>scroll snap positions</a>
if its nearest <a>scroll container</a> is a <a>scroll snap container</a>.
The user agent <em>may</em> also do this even when the <a>scroll container</a> has ''scroll-snap-type: none''.
1. Return <var>position</var>.


Expand Down