[csswg-drafts] [css-overflow-5] Allow ::scroll-marker to use a capture of the originating element (#11871)

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

== [css-overflow-5] Allow ::scroll-marker to use a capture of the originating element ==
It could be useful to allow the scroll marker to use a captured image of the originating element.

This would allow authors to present a preview of the originating element, something that could be particularly useful when using the scroll markers [for slides](https://chrome.dev/carousel/vertical/slides/).

The images could be captured [as for view transitions](https://www.w3.org/TR/css-view-transitions-1/#capture-the-image-algorithm), but the elements should probably be rendered as if scrolled to their scroll target.

There are a number of challenges however: 
- When and how often should the images be captured?
- Capturing the preview should probably not cause side-effects by triggering events like scroll-events, APIs like IntersectionObserver, or finished promises on scroll-driven animations.

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


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

Received on Sunday, 9 March 2025 09:56:00 UTC