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

HTML streaming, does the property apply after the html streaming is complete or during? #22

Open
argyleink opened this issue May 3, 2022 · 2 comments

Comments

@argyleink
Copy link
Owner

maybe @flackr can help me articulate this 🙂

@flackr
Copy link
Collaborator

flackr commented May 4, 2022

When you load a page, the content streams in and the browser can perform multiple render passes. If in its initial render pass there is no scroll-start-target, but eventually after some more loading an element with scroll-start-target: auto appears, do we then scroll to the element? I assume yes we would want to scroll in this case since the only reason it wasn't present in the initial style / layout was it hadn't loaded yet.

Then what if we have a page that has fully loaded and we add a scroll-start-target: auto element to a scroller? Presumably we don't want to scroll to the element in this case as the scroll-start-target wasn't there originally. Arguably a site which fetches some content containing a scroll-start-target could want this, but it seems like an anti-pattern for scroll stability.

I think in the current spec it isn't clear exactly when we would consider new scroll-start-target elements, but we should define when it takes effect such that it has the behavior we expect.

@argyleink
Copy link
Owner Author

ty, much clearer!

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

No branches or pull requests

2 participants