[csswg-drafts] [scroll-animations-1] Allow optional `<percentage>` in `animation-range-*` (#8438)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [scroll-animations-1] Allow optional `<percentage>` in `animation-range-*` ==
If I understand correctly, the `<percentage>` in `animation-range-start` and `animation-range-end` refers to a *specified point on the timeline*. Currently, when declaring [`animation-range`](https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range) with a single `<timeline-range-name>`:

> If a `<timeline-range-name>` alone is specified, `animation-range-start` is set to that name plus `0%` and `animation-range-end` is set to that name plus `100%`.

So I wonder why `animation-range-start` and `animation-range-end` do not allow `<percentage>` to be optional:

```diff
  Name: animation-range-start 
- Value: [ normal | <timeline-range-name> <percentage> ]#
+ Value: [ normal | <timeline-range-name> <percentage>? ]#
```

It would default to `0%` in `animation-range-start` and `100%` in `animation-range-end`.

Also, I guess this `<percentage>` should be restricted to [0,100] and `<percentage>`.

I also wonder if `animation-range-start` should always be lower than `animation-range-end`, but this question might deserve its own issue. Please let me know.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8438 using your GitHub account


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

Received on Thursday, 9 February 2023 13:52:04 UTC