Re: [csswg-drafts] [css-env] Adding custom env() variables (#2627)

> I think the general idea is to allow script to set them. But it's probably a good idea to allow stylesheets specify default values to them. Probably something like
> 
> ```css
> @env {
>     --some-width: 30em;
>     --some-color: #000;
> }
> ```
> 
> works.

This solution seems like the most obvious choice to me, especially considering how it very closely mimics an already-existing feature, `@page`.

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


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

Received on Wednesday, 21 September 2022 08:34:26 UTC