Re: [csswg-drafts] [css-values-5] What is the MVP for inline conditionals on custom properties? (#10064)

I am happy with the `if(cond(): foo; else: bar)`: it is mostly in-line with what I mentioned in my other [earlier comment](https://github.com/w3c/csswg-drafts/issues/10064#issuecomment-2327673257).

After the discussion, for the remaining questions, I agree with @LeaVerou that in the `false` branch, in absence of an `else` value, returning an empty token is better than IACVT. It is rarely that an author needs to return an explicitly IACVT value, and an “empty” value is something that happens much more often (even in absence of the conditional workarounds, like when [using a custom property as a placeholder](https://blog.kizu.dev/space-toggle-placeholders/)).

One thing that was not resolved, but should be non-contentious — that the trailing `;` can be optional, and can be present without anything else (this way it will be following the way CSS declarations work already).

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


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

Received on Thursday, 26 September 2024 17:44:25 UTC