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

I have a few concerns with the proposal:

1. I don't think the trigger user should be specifying the DOM event. It should know whether a specified trigger has fired, but not how it has fired. Only the trigger element itself should be caring about what events are triggering.
2. We need to provide more abstract concepts for triggers. Sometimes you want to be very specific about what DOM event is triggering, and exclude all others, but in many cases you want something more generic. For example, the author shouldn't need to think about whether a button was triggered using click, touch, or a keyboard event. They should only be concerned with whether the button was activated somehow.

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


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

Received on Wednesday, 10 September 2025 15:11:22 UTC