Re: [csswg-drafts] [web-animations-2][css-animations-2] animation-trigger CSS syntax (#12652)

The CSS Working Group just discussed `[web-animations-2][css-animations-2] animation-trigger CSS syntax`, and agreed to the following:

* `RESOLVED: syntax of animation-trigger is [<dashed-ident> <behavior/actions>]+#`

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> fantasai: two things. first here is the syntax of animation-trigger, which binds a named event to an animation<br>
&lt;TabAtkins> fantasai: given that comma-separated is already used to align them with the animations<br>
&lt;TabAtkins> fantasai: we need something else. could use a trigger() function, but maybe awkward<br>
&lt;TabAtkins> fantasai: I think the current syntax proposed is to use space separation, with name first then actions<br>
&lt;TabAtkins> fantasai: and because the event is syntax unique, it would go first and dictate what arguments would apply to it<br>
&lt;flackr> something like [&lt;dashed-ident> &lt;behavior/actions>]+ ?<br>
&lt;TabAtkins> fantasai: yes, like that<br>
&lt;futhark> present-<br>
&lt;TabAtkins> flackr: seems reasonable<br>
&lt;TabAtkins> ydaniv: sounds fine. Robert had some concerns about later having multiple triggers....<br>
&lt;TabAtkins> flackr: that's implied here<br>
&lt;TabAtkins> flackr: the dashed-ident doesnt' clash with the behavior/action values<br>
&lt;TabAtkins> fantasai: an alternative is to flip the order.... but that could be confusing<br>
&lt;TabAtkins> proposed resolution: syntax of animation-trigger is [&lt;dashed-ident> &lt;behavior/actions>]+#<br>
&lt;TabAtkins> RESOLVED: syntax of animation-trigger is [&lt;dashed-ident> &lt;behavior/actions>]+#<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12652#issuecomment-3329841437 using your GitHub account


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

Received on Wednesday, 24 September 2025 16:49:49 UTC