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

> we could simply disallow it

`:` is valid in custom properties, so it seems unnecessary limiting to disallow it in conditionals that may be used in said custom properties.

> I think using `?` to separate the condition from the first value

I don't want that either. But we can use `:` here, which is consistent with how we relate values to properties in declarations.

```
if(cond1: val1, cond2: val2, fallback) /* only if no value contains commas */
if(cond1: val1; cond2: val2; fallback) /* general syntax */
```


-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10064#issuecomment-2186741098 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 14:39:12 UTC