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

> Syntax aside, we need to decide separately if a lack of else means IACVT or an empty token stream.

Empty token stream can be accomplished by just omitting the value part, so I don't think it needs to be specially addressed.

> If the semantics are first true condition wins (which is the easiest to implement and understand, especially) and else is defined to always match then it's valid everywhere but probably only means what you want when it's at the end. This allows some printf debugging by sticking an else in the middle, and it's easy enough for linters to detect and warn about a medial else.

Ah, true, I do find that valuable (and end up making this same mistake every time I design something like this, lol).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10064#issuecomment-2187396274 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 21:02:18 UTC