-
Notifications
You must be signed in to change notification settings - Fork 757
[css-scroll-snap-2] Specify scroll-start-target #10227
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
Conversation
This adds details to the scroll-snap-2 spec[1] to specify scroll-start-target. [1] https://drafts.csswg.org/css-scroll-snap-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made suggested changes, ptal, thanks.
Define initial scroll position precedence in css-overflow-3. De-vaguify post-first layout scroll-start-target & point to document update process. Extract scroll-view position algorithm for standalone use.
Remove slight duplication.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the refactor, I think this is looking good, and extracting the algorithm to calculate the position that would scroll into view will be really useful for other spec changes coming.
Replace scroll-view with scroll-into-view. Mention and link css properties that change initial scroll position.
- removed "3.2.2. The scroll-start-target shorthand" and moved up its content (the property definition table) - removed remnants of `scroll-start-target-*` longhands (removed in w3c#10227)
- removed "3.2.2. The scroll-start-target shorthand" and moved up its content (the property definition table) - removed remnants of `scroll-start-target-*` longhands (removed in w3c#10227)
This adds details to the scroll-snap-2 spec[1] to specify scroll-start-target.
[1] https://drafts.csswg.org/css-scroll-snap-2