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

@Loirooriol I guess, yeah, Rust, Kotlin, Lua, Haskell all have `if`, `then`, `else` literals as expressions.

in a web context though? I can't think of anything in a web context that has the `if` keyword as an expression.

SCSS for example has `if` blocks:

```scss
@if $light-theme {
  background-color: $light-background;
  color: $light-text;
} @else {
  background-color: $dark-background;
  color: $dark-text;
}
```


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


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

Received on Monday, 24 February 2025 16:32:58 UTC