Scroll Behavior in R3 #511
Unanswered
jakobrosenberg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Glossary
<slot />
- a single node is rendered in the slot.<slot inlined />
- all child nodes are rendered in the slot.Expectations
If a #hash anchor is present in the URL
Else:
standalone node
is rendered, it should be scrolled to the top of its parent node.inline node
is rendered, it should recursively be scrolled into view of all its ancestor elements until it reaches its boundary element. The boundary element is normally the parent node, but can also be set to an element further upstream (eg. on the html document, if we want to treat the node as a #hash anchor).Note 1: This is just a preliminary draft. I'll update it based on input.
Note 2: Inlined nodes are currently enabled with
<slot multi />
, but will be refactored to<slot inline />
.Beta Was this translation helpful? Give feedback.
All reactions