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

Yeah, I'd rather solve custom at-rules this way than adding `@custom-whatever` for everything with a prelude.

> `@global "<color>" no-inherit { --brand-color: teal; }`

If this does exactly the same as `@property`, then we should try to make it a special form of `@property` intead:

> `@property "<color>" no-inherit { --brand-color: teal; }`

That should be doable as long as the new prelude doesn't start with `--`.

-- 
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9206#issuecomment-1683028672 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 21:53:46 UTC