Re: [csswg-drafts] [css-properties-values-api] A compact syntax for registering global constants/custom properties (#9206)

Currently, the rules for property registration [severely limit the initial value](https://drafts.css-houdini.org/css-properties-values-api/#initial-value-descriptor) of any property with non-universal syntax – requiring them to be 'computationally independent'. For example, a property with `<length>` syntax cannot have an initial value of `3em`. Even without a syntax, variable cross-reference is not allowed

I don't know the original purpose of that restriction, but it would be a potential blocker here. The goal would be for authors to use this _in place of_ setting all custom properties on root. But many custom property use-cases rely on relative units and relationships between variables. If those things aren't allowed in the registration syntax, then authors will still be forced to define custom properties in two places.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9206#issuecomment-1683052586 using your GitHub account


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

Received on Thursday, 17 August 2023 22:22:21 UTC