Re: [csswg-drafts] [css-animations-2] Add animation-trigger for triggering animations when an element is in a timeline's range (#8942)

One thing I noticed while fiddling with the current grammar is that authors cannot use `--timeline normal 100%` to declare `normal` for the default range and `100%` for the exit range. They must use `--timeline normal normal 100%`.

Perhaps `/` could be used as a range separator? 

(added some productions for better reada)

```
<single-animation-trigger> =
     <single-animation-trigger-type>
  || [ 
         none 
       | auto 
       | <timeline-ident> <animation-range-value>{1,2} [ / <animation-exit-range-value>{1,2} ]? 
     ]

<animation-range-value> = normal | <length-percentage> | <timeline-range-name> <length-percentage>?
<animation-exit-range-value> = auto | <animation-range-value>
<timeline-ident> = <dashed-ident> | <scroll()> | <view()>
```

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


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

Received on Thursday, 6 February 2025 11:13:10 UTC