[csswg-drafts] [css-overflow] Infinite scrolling (#5411)

SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow] Infinite scrolling ==
Infinite scrolling means the content of a scroll container is starting at the beginning again when you reach its end.

In the discussion in https://github.com/w3c/csswg-drafts/issues/5275#issuecomment-664650327 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](https://user-images.githubusercontent.com/958943/89721542-07cc8600-d9df-11ea-86a0-aba356df1a7d.png)

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

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5411 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 8 August 2020 23:34:06 UTC