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

Here's an alternative proposal that doesn't require having an if-false value in the function at all:

```css
background: --if-false;
background: if(style(--override-bg: true), --if-true);
```

The second declaration would be considered invalid if the `if()` evaluates to false, falling back to the previous declaration. Maybe that feels more CSSy?

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


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

Received on Friday, 14 June 2024 14:32:44 UTC