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

It feels like the `@if` you're describing is a way to replace all conditional rules with a new syntax that can mix and match them.

```css
@if media(width >= 993px) and supports(display: grid) and container(orientation: landscape) and style(--accent-color: blue) {
  content: 'You match our exact use case';
} @else {
  content: 'Oh no!'
}
```

I have to admit `@if` does feel to fit the current CSS syntax better that inline but `?`, `:` would get my vote for inline syntax.

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


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

Received on Tuesday, 23 July 2024 08:34:07 UTC