Skip to content

[css-overflow] Infinite scrolling #5411

Open
@SebastianZ

Description

@SebastianZ

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 the overflow property and its longhands overflow-x and overflow-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:

Infinite scrolling

As you can see, the first element is drawn again.

Sebastian

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions