- From: Benoît Rouleau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 24 Jun 2024 16:55:59 +0000
- To: public-css-archive@w3.org
> To be more productive, then, my suggestion for the syntax is: > > ``` > if( [<<if-cond>> ':' <<decl-value>> ]# ) > <if-cond> = <<boolean>> | else > ``` > > With the condition that `else` is only valid in the final pair. (And if there's no `else` and all the conditions fail, the value is IACVT.) So something like this? ```css property: if(style(--condition: true): var(--value-if-true), else: var(--value-if-false)); ``` Makes a lot of sense to me! -- GitHub Notification of comment by benface Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10064#issuecomment-2187012059 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 24 June 2024 16:56:00 UTC