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

[css-scroll-snap-1] Scroll by page should not skip over content. #11370

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flackr
Copy link
Contributor

@flackr flackr commented Dec 13, 2024

As per #10914 when selecting a snap point as a result of a scroll by page operation we should always select a snap position that is less than a page away as long it still makes progress in the requested direction if one exists.

As per w3c#10914 when selecting a snap point as a result of a scroll by page operation we should always select a snap position that is less than a page away if one exists.
@flackr flackr requested a review from tabatkins December 13, 2024 17:11
@@ -1090,6 +1090,10 @@ Choosing Snap Positions {#choosing}
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''.

* If a scroll by page operation (e.g. Page down / Page up) is being performed,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we have a spec concept for a scroll by page operation. Scrolling by page exists as a granularity for wheel scrolls but that doesn't include things like page up / page down or clicking on the scrollbar track. As such, I referred to the concept generally here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant