Re: [csswg-drafts] [css-mixins-1] When does (custom) `env()` resolve? (#12676)

If they substitute `@apply` time, they won't automatically interact well with features that "act" on IACVT, for example:

```
@mixin --m() {
  & {
    color: first-valid(env(--invalid), var(--thing));
  }
}
```
I think we'd need to add a CSS-wide keyword (`guaranteed-invalid`?) and have `env()` resolve to that.

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


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

Received on Friday, 29 August 2025 09:17:23 UTC