- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Jun 2024 21:01:06 +0000
- To: public-css-archive@w3.org
Closest I've seen is "custom env", https://github.com/w3c/csswg-drafts/issues/2627#issuecomment-386932374.
There are also a few proposals for registering a bunch of custom properties (and their initial values) in a less verbose way.
> make sure they don't get overwritten
Does that mean you want the first rule that sets a constant to determine the value, and any further attempts to (re)set the value should be ignored? E.g.:
```
@env { --foo: 10px; }
@env { --foo: 20px; }
div {
width: env(--foo); /* --10px */
}
```
--
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10286#issuecomment-2163893136 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 12 June 2024 21:01:07 UTC