- From: François REMY via GitHub <sysbot+gh@w3.org>
- Date: Wed, 09 Dec 2020 17:32:40 +0000
- To: public-css-archive@w3.org
As mentioned above, I would like this to be pursued further. That sounds very useful (but even having `if` would be nice, I think).
Random thought: another possible syntax for the syntactic sugar:
```
selector {
property-one: value;
@transform-values if(--condition: true, $);
property-two: value-x, value-y;
property-three: value-u, value-v;
}
```
In the CSSOM, the @transform-values wouldn't be reflected, it would be a transform applied while parsing declarations.
```
selector {
property-one: value;
property-two: if(--condition: true, value-x, value-y);
property-three: if(--condition: true, value-u, value-v);
}
```
--
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5624#issuecomment-741926328 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 December 2020 17:32:42 UTC