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

scroll-initial-target #1107

Open
DavMila opened this issue Nov 5, 2024 · 3 comments
Open

scroll-initial-target #1107

DavMila opened this issue Nov 5, 2024 · 3 comments
Assignees

Comments

@DavMila
Copy link

DavMila commented Nov 5, 2024

Request for Mozilla Position on an Emerging Web Specification

@DavMila
Copy link
Author

DavMila commented Dec 11, 2024

Just a quick update here:

  • the CSS working group resolved to use scroll-initial-target instead of scroll-start-target and nearest instead of auto

per TAG feedback.

@DavMila DavMila changed the title scroll-start-target scroll-initial-target Jan 16, 2025
@zcorpan zcorpan moved this from Unscreened to Needs proposed position in standards-positions review Jan 17, 2025
@emilio
Copy link
Collaborator

emilio commented Jan 27, 2025

@hiikezoe, any concern with this?

@hiikezoe
Copy link

I don't see any big concerns right now. There are several things are not very clear to me in the current spec.

  1. Does scroll-snap win over scroll-initial-target? (I guess so)
  2. Does restoring scroll position feature while being reloaded contents by browser win? (I don't think so)
  3. Should scroll-padding and scroll-margin be respected for scroll-initial-target?
  4. Once after a scroll-initial-target element has been settled, then if the element position is changed for some reasons, an extreme case is the element is animated by CSS transform change, browser needs to re-evaluate the scroll position? It's a role of scroll anchoring? what if overflow-anchor: none is specified?
  5. Similar to above, what if the scroll-initial-target element is also a target of scroll driven animation?
  6. What if the scroll-initial-target element is a position:sticky element? Say, position: sticky; top: 20px or some such, browser just needs to scroll the position where the sticky element was originally laid out?

Anyways, the basic concept looks reasonable and nice to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs proposed position
Development

No branches or pull requests

4 participants