W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Tue, 03 Nov 2020 15:34:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-721202731-1604417655-sysbot+gh@w3.org>
@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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC