- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Thu, 03 Oct 2024 09:03:25 +0000
- To: public-houdini-archive@w3.org
To clarify my understanding: - in the first rule, `initial-value: var(1)` makes the descriptor invalid and ignored - in the second rule, `initial-value: var(--initial)` makes the rule invalid because it is computationally dependent That is, `var(1)` is invalid at the syntax level of `initial-value`, as [specified](https://drafts.csswg.org/css-variables-2/#using-variables): > If a property contains one or more `var()` functions, and those functions are syntactically valid, the entire property’s grammar must be assumed to be valid at parse time. And `initial-value: var(--initial)` is invalid at the context level of `@property`, as [specified](https://drafts.css-houdini.org/css-properties-values-api-1/#descdef-property-initial-value): > - The `initial-value` must be computationally independent. > > If the above conditions are not met, the `@property` rule is invalid. Computationally dependent values could have been specified as invalid at the context level of `initial-value`, but this does not seem important since authors will probably not make multiple declarations of `initial-value`. So the specifications are already clear and I am closing this issue. I hope I am not missing something. -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1120#issuecomment-2390895300 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 3 October 2024 09:03:26 UTC