[csswg-drafts] [scroll-animations-1] Ambiguous grammar of `animation-range` (#9264)

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

== [scroll-animations-1] Ambiguous grammar of `animation-range`  ==
https://drafts.csswg.org/scroll-animations-1/#animation-range

I assume `animation-range: entry 10%` should expand to `animation-range-start: entry 10%` and `animation-range-end: normal`.

But assuming the grammar can be symbolized with `[a | b a?]{1,2}` and the input is `b a`, I do not know which spec defines the matching behavior that says how many repetitions should match the input.

Maybe it should be clarified in prose (and the examples could include this case). For example:

  > If only a `<timeline-range-name>` and a `<length-percentage>` is specified, it is assumed to match `<'animation-range-start'>`, and `<'animation-range-end'>` is omitted.

Note this also means that when serializing `animation-range`, `0%` cannot be omitted for the `<timeline-range-name>` of `animation-range-start` if `animation-range-end` is declared with a (single) `<length-percentage>`.

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


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

Received on Tuesday, 29 August 2023 13:57:36 UTC