Skip to content

[css-scroll-snap-2] Why is scroll-start measured against the width/height of the scrollport? #8854

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

Closed
flackr opened this issue May 18, 2023 · 4 comments

Comments

@flackr
Copy link
Contributor

flackr commented May 18, 2023

css-scroll-snap-2 scroll-start says that end is equivalent to 100% and that values corresponding to a length greater than the width/height of the scrollport are clamped to the width/height implying that 100% would be the width of the scrollport. This means that end would not be the end of the scroll but one page over / down. I think this is probably not the intention, @argyleink ?

@flackr
Copy link
Contributor Author

flackr commented May 18, 2023

I expect the values should be measured against / clamped to the scroll range (i.e. scroll length - scroll port size).

@DavMila
Copy link
Contributor

DavMila commented Jun 2, 2023

Clamping to the scroll range rather than the scroll port size seems to be the right thing to do I'll make a PR with this edit to the spec.

@flackr
Copy link
Contributor Author

flackr commented Oct 31, 2024

@DavMila seems like this may be obsolete if we are going for only having scroll-start-target?

@DavMila
Copy link
Contributor

DavMila commented Nov 4, 2024

@DavMila seems like this may be obsolete if we are going for only having scroll-start-target?

Yes, I believe this is obsolete. I'll mark this issue closed.

@DavMila DavMila closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants