[csswg-drafts] [css-values-4] Should `<dashed-ident>` inherits restrictions from `<custom-ident>`? (#11684)

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

== [css-values-4] Should `<dashed-ident>` inherits restrictions from `<custom-ident>`? ==
`animation-timeline` is a [`<dashed-ident>`](https://drafts.csswg.org/css-values-4/#typedef-dashed-ident), which is a [`<custom-ident>`](https://drafts.csswg.org/css-values-4/#identifier-value) starting with `--`, which excludes `default` and *any valid CSS identifier that would not be misinterpreted as a pre-defined keyword in that property’s value definition*.

`<dashed-ident>` could have been defined as a case-sensitive `<ident>` starting with two dashes. Since that is not the case, I would expect `--initial`, `--default`, `--auto`, `--none`, etc., to be invalid in `animation-timeline`.

However, Chrome and FF (non-exhaustive) interpret `animation-timeline: --initial` as a valid declaration.

Is this an implementation or specification issue?

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


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

Received on Monday, 10 February 2025 09:32:32 UTC