Re: [csswg-drafts] [css-variables?] Higher level custom properties that control multiple declarations (#5624)

@Awesomecloud Naming is typically decided at the end, all features are proposed with an implied "name to be bikeshedded".

The problem with such a generic conditional is — as usual — cycles.

Consider this:

```
.my-input {
 @if (env(width) > 768px) {
  width: 700px;
 }
}
```

Also, with such generic expressions, there are ambiguities. E.g. what does `@if (calc(env(width) + env(height)) > 100%)` mean, since percentages mean different things in each property?

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


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

Received on Tuesday, 3 November 2020 15:34:17 UTC