Re: [csswg-drafts] [scroll-animations] Broader scope of scroll timelines (#7759)

@andruud That's a good question. I have a few thoughts:

1. Rather than thinking of the "timeline" as dynamic we could think of the subject/source as dynamic. I hate to propose yet more properties but in the interest of finding the best ergonomics here we go. We could have something like `scroll-timeline-source: <name>` and `view-timeline-subject: <name>` which set the current element as the source/subject for the named scroll/view timeline.
2. If we assume the root is just a name reservation (which had been my thinking so far), we could try to craft the `scroll-timeline` and `view-timeline` shorthands such that you can't specify both defer and other axis/inset properties. This makes it less likely that the authors think they're applying them.
3. Go back to having a separate property to explicitly declare the root as @bramus suggested above. I just want to be sure I understand @fantasai's one concern that it doesn't allow for recursion. This is that unless you set scroll-timeline-root again any scroll timeline doesn't become an implicit root?

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


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

Received on Friday, 31 March 2023 14:28:21 UTC