- From: Christoph Päper via GitHub <noreply@w3.org>
- Date: Thu, 11 Dec 2025 10:36:36 +0000
- To: public-css-archive@w3.org
> By the way, for a shorthand, statement syntax I like this:
Two days later, I’m now leaning more towards a different solution: typed statement at-rules for registering simple global variables in `var()` space that always inherit, but possibly don‘t support overwriting, i.e. are constant.
~~~~ css
@color --grue: rgb(0% 80% 80%);
@length --finger-tip: 8mm;
@size --vga: 640px 480px;
@angle --north-west: 45deg;
@number --phi: calc(1 + sqrt(5/4));
@url --home: src('/#top');
@image --ci-logo: url("/img/acme.svg");
~~~~
If I remember correctly, something like this was rejected initially in favor of the Custom Property solution.
--
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-3641296408 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 11 December 2025 10:36:37 UTC