Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-animations-2] Describe behavior for changes to animation-timeline #5666

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions css-animations-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ urlPrefix: https://drafts.csswg.org/web-animations-1/; type: dfn; spec: web-anim
text: timeline
text: unresolved
text: default document timeline
text: set the timeline of an animation
urlPrefix: https://drafts.csswg.org/css-writing-modes-4/; type: dfn; spec: css-writing-modes-4
text: equivalent physical property; url: logical-to-physical
urlPrefix: https://drafts.csswg.org/css-values-4/; spec:css-values-4; type:dfn; text:css identifier
Expand Down Expand Up @@ -144,6 +145,10 @@ the changes from the programming interface take precedence as follows:
However, if the last matching ''@keyframes'' rule is removed
the animation must still be canceled.

* After successfully setting the {{Animation/timeline}} of a {{CSSAnimation}},
all subsequent changes to the 'animation-timeline' property
will not be reflected in that animation.

Note, the reference to a successful call in the above rules
is necessary to ensure that
when an exception is thrown by any of these methods,
Expand Down Expand Up @@ -555,6 +560,15 @@ the following effects:
</pre>


Whenever the resolved value of 'animation-timeline' changes
for an existing animation,
the implementation must run the procedure to
[=set the timeline of an animation=] for that animation.

The above requirement does not apply
if the animation's timeline is being overridden by the Web Animations API
as described in [[#animations]].

Issue: Make it easier to use 'animation-name' to select the timeline when
'animation-timeline' is not specified. Allowing 'animation-name' to be used for
selecting timeline enables most common animations to have to use a single name
Expand Down