Re: [csswg-drafts] [scroll-animation-1] Define scroll linked animation behavior in printing documents (#8226)

> I suppose you meant for the root scroll container cases?

Definitely for the root scroller as printing is paged media without a viewport.

For non-root scrollers I hadn’t really checked what printing does. In Chrome it prints the contents at the current scroll position like you mentioned. With that given, it makes sense to print the scroll-linked element at a certain position.

Maybe the progression of the animation could be snapshotted and then be re-applied when printing? E.g. say you’ve scrolled halfway and the scroll-linked animation is at 50% because of that. When printing, then use that 50% as the animation progress instead of trying to recalc the whole lot based on the printed box’s size.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8226#issuecomment-1359420303 using your GitHub account


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

Received on Tuesday, 20 December 2022 14:08:44 UTC