- From: Guillaume via GitHub <noreply@w3.org>
- Date: Thu, 28 Aug 2025 07:03:06 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5] `ident()` should be validated at parse time == Follow-up on https://github.com/w3c/csswg-drafts/issues/11663#issuecomment-3036261525. As currently [specified](https://drafts.csswg.org/css-values-5/#ident): 1. `ident(1)` is valid but produces an invalid `<ident>` 2. `ident(initial)` is valid but produces an invalid `<custom-ident>` 3. `ident(custom)` is valid but produces an invalid `<dashed-ident>` 4. `ident(none)` is valid but produces an invalid `<keyframes-name>` The result of `ident(1)` could be escaped but this does not work for 2-4, so it would be more consistent to always validate the first argument (at parse time). I presume that 3-4 and similar cases should also be validated at parse time. `calc(-1)` is a valid `<number [0,∞]>` and is clamped at computed value time. I do not think anything similar can be done for `ident()`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12668 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 28 August 2025 07:03:07 UTC