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

> Isn't it problematic to end a production rule with `]# ]#` ? How can you determine the affinity of commas?

I think it would be problematic. I've updated the grammars:

Old: ~~`animation-trigger: <single-animation-trigger> [<space> <single-animation-trigger>]# [, <single-animation-trigger> [<space> <single-animation-trigger>]# ]#`~~

New: `animation-trigger: [ [ <single-animation-trigger>]+ ]#`

I'm not sure if it can be copy-pasted into spec yet but I was going for "comma separated list of space-separated list", so I hope that's clear enough now.


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


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

Received on Tuesday, 26 August 2025 12:55:15 UTC