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

> I think we should go with `if ([cond ? iftrue : iffalse ]+)`

I disagree. `iftrue` and `iffalse` should be allowed to be any `<declaration-value>`, which includes `:`, so it would be problematic.

And in #9539 we already agreed on a way to separate such things: a semicolon, which can be replaced with an "implicitly upgradeable" comma in specific cases.

I don't think that consistency with JS justifies diverging from the above for conditionals.

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