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

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

== [scroll-animations-1] Scope of Named Timelines ==
In the #6674 proposal, timeline names are attached to scroll containers and elements to create scroll timelines and view timelines, and which can then be referenced by animation properties to create animations.

What should be the scope of these names, i.e. which elements can reference a given timeline by name, and what happens if multiple elements declare the same name?

The current spec defines:

> A named scroll progress timeline or view progress timeline is referenceable in animation-timeline by:
>- the declaring element itself
>- that element’s descendants
>- that element’s following siblings and their descendants
>
> If multiple elements have declared the same timeline name, the matching timeline is the one declared on the nearest element in tree order, which considers siblings closer than parents. In case of a name conflict on the same element, scroll progress timelines take precedence over view progress timelines.

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


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

Received on Monday, 14 February 2022 20:39:55 UTC