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

> I don't especially love using `trigger()` as a mere grouping agent because we ran out of commas, so I somewhat lean towards [@flackr](https://github.com/flackr)'s alternative suggestion of just using spaces. [#12652 (comment)](https://github.com/w3c/csswg-drafts/issues/12652#issuecomment-3276502512)
> 
> I think we also need to keep in mind that at some point, we may want longhands for `animation-trigger`, and I don't think we've ever bound bits of different longhands into a functional notation in the shorthand. Feels a bit awkward to do so, don't you think?
> 

I'd be happy with the alternative of just using spaces! Yeah I agree that tying `trigger()` params to longhands feels a bit unusual even though, from a practical standpoint, it could perhaps work. I also like that just using spaces makes the syntax less verbose. One potential limitation that I see with using just spaces is that we can't introduce a new option using dashes idents into <single-animation-trigger>. We could easily solve this by using a function I think.


-- 
GitHub Notification of comment by DavMila
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12652#issuecomment-3328996743 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 14:44:37 UTC