Re: [csswg-drafts] [scroll-animations-1] Scope of Named Timelines (#7047)

Okay, the current state of the spec reflects the resolutions. This is probably fine for now, but we're not addressing all use cases and it might be worth looking into the ability to split the declaration of a timeline (together with its scoping) from its actual attachment to a scroll container.

This would allow authors, for example, to declare a name on a subtree and make it available to all descendants of that subtree, and attach it to a scroll container that is a descendant within the subtree. (At the top level, declaring the name on the root element would make it global.)

Maybe something like `scroll-timeline-attachment: local | defer | ancestor | closest` where:

- `local` has the current behavior of binding the name to this element’s scroll container
- `defer` declares and scopes the name, but does not bind it to a scroll container
- `ancestor` looks up the ancestor chain for a matching timeline name and attaches to that instance; failing a match, declares it locally
- `closest` looks back up the tree including previous siblings for a matching timeline name (same lookup as animation-timeline), and attaches to the first matching instance; failing a match, declares it locally

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


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

Received on Wednesday, 7 September 2022 20:08:06 UTC