[csswg-drafts] [scroll-animations] Computed value of animation-timline (#5112)

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

== [scroll-animations] Computed value of animation-timline ==
The computed value of `animation-timeline` is currently "as specified". I think it should be as similar as possible to the computed value of `animation-name`, since it's identical (except `animation-timeline` also allows `auto`). It would appear `animation-name` isn't quite right in the spec either, as it doesn't handle string values vs. `<custom-ident>` correctly.

For `animation-name`, I think `<custom-ident>` is the canonical form, i.e. `animation-name:foo` rather than `animation-name:"foo"`, so probably the computed value for both properties should be a list, where each item is an identifier if it would match `<custom-ident>`, otherwise a string or a keyword.

In other words, if you specify `animation-name:"foo"` the computed value is `animation-name:foo`, but if you specify `animation-name:"none"`, the computed value is `animation-name:"none"`. And similarly for `animation-timeline`.

Alternatively make `animation-name` "as specified" too.

cc @majido 

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

Received on Tuesday, 26 May 2020 06:05:37 UTC