Re: [csswg-drafts] [css-env][css-conditional] Need an approach to check whether an environment variable is supported (#3576)

I think an env() supports function like selector() seems fine. But also is it really all that useful? It seems for preferred-text-scale you could just assume the fallback is 1, so something like `--text-scale: env(preferred-text-scale, 1)` and roll with `--text-scale`.

I guess the usefulness would be mostly to avoid doing hacky things to compute the scale if you know the browser is giving you a value?

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


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

Received on Wednesday, 14 May 2025 21:39:53 UTC