-
Notifications
You must be signed in to change notification settings - Fork 680
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
[css-overflow] Infinite scrolling #5411
Comments
Btw., if the box doesn't have scrollable overflow, it behaves like Sebastian |
Feels kinda odd that if a 100px-wide scroller has a single 90px-wide child, it'll act like |
I just took that from the Though, re-thinking this, users probably expect the behavior to be the same in both cases. I.e. we might say that the empty space will be fragmented like an element in that case. So, picking up your example of a 100px-wide scroller with a 90px-wide child, you'd still be able to scroll. That means, the child and the 10px empty space would be fragmented so that they always fill up the 100px width of the scroller. So, showing my perfect drawing skills again 😉 using the example from above, that would then look like this when being scrolled: Sebastian |
Came here from the carousel explainer. I was wondering if this might bring some accessibility issues along with it. Imagine having a cyclic overflow with links in it:
Comments independet of focusable elements:
|
Infinite scrolling means the content of a scroll container is starting at the beginning again when you reach its end.
In the discussion in #5275 (comment) two use cases were mentioned for supporting infinite scrolling, maps and (image) galleries.
To cover those cases, I suggest adding a new value
infinite
(name to be discussed) to theoverflow
property and its longhandsoverflow-x
andoverflow-y
.Setting this value turns a box into a scroll container without displaying a scrolling mechanism like a scrollbar. When scrolling beyond the end of the box's content, the beginning fragment of the box's content is rendered up to the box's padding edge. If you scroll beyond the start of the box's content, the ending fragment of the box's content is rendered accordingly.
Example:
Here's a box containing ten horizontally left-to-right aligned elements numbered from 1 to 10 with
overflow-x: infinite;
scrolled to the right beyond the 10th element:As you can see, the first element is drawn again.
Sebastian
The text was updated successfully, but these errors were encountered: