- From: Bramus! via GitHub <sysbot+gh@w3.org>
- Date: Tue, 20 Sep 2022 12:49:37 +0000
- To: public-css-archive@w3.org
> Regarding the latest changes from [2152a23](https://github.com/w3c/csswg-drafts/commit/2152a232f0b050e2aa148d95f32a0fff61cf259b), can you please provide me some clarifications on the grammar of `<timeline-range-name>`? Can it be defined with a basic syntax like `<custom-ident>` (to allow authors _to declare their own custom named timeline ranges_ in a future API), or with `|` separated timeline range names, currently restricted to the view progress named timeline ranges: `cover | contain | entry | exit`? Right now only those 4 – `cover | contain | entry | exit` – are allowed. There currently is no intention to allow authors to define their own view timeline ranges – at least not at this point. I think the rather loose syntax is there because [that particular section](https://drafts.csswg.org/scroll-animations-1/#timeline-ranges) will move to the css-animations-2/web-animations-2 spec over time. This leaves it open for other specs – other than scroll-animations-1 – to also define extra possible values, without requiring an update to the _(future)_ css-animations-2/web-animations-2 specs. > Also, both `animation-range` and `animation-delay` are shorthands for `animation-delay-start` and `animation-delay-end`? What is the purpose of `animation-range`? Which shorthand should serialize (assuming both sub-properties have a declaration)? Same question. Found it weird to have two properties target the same> Otoh I do understand the need for `animation-range`: it is more readable in the content of scroll-linked animations. E.g.`animation-range: exit` is easier to grasp than `animation-delay: exit`. -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7044#issuecomment-1252307464 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 20 September 2022 12:49:40 UTC