Replies: 2 comments 5 replies
-
Defining an initial scroll position in CSS is definitely something that is needed today for the use cases mentioned in the draft. The main problem it would solve for me is preventing the shift caused by the scroll after a page load (for server side rendered/static pages), which is pretty bad UX. Here are a few other use cases I have in mind:
Question: I suppose this property would take into account the properties What I'm wondering is whether this property could not be given more power, allowing to set the scroll position whenever it is applied, instead of only at the rendering of the scroll container. It would therefore be transformed into a This certainly has broader implications than only setting it at the rendering time, and I am not sure it is the best way to go, but it would make sense and might be useful:
|
Beta Was this translation helpful? Give feedback.
-
This may be pure fantasy, but I'd like to be able to pass a selector to the scroll start so you can say "start with this element on screen". You do not know the absolute position of the element you care about all the time, especially with responsive sites the offset may be vastly different in absolute units.
|
Beta Was this translation helpful? Give feedback.
-
Context: explainer
Questions?
Thoughts?
Naming fine?
Risks?
Beta Was this translation helpful? Give feedback.
All reactions