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

@tabatkins Why not simply make the last argument mandatory and allow empty values (just like `var()`)?

Compare:

Option 1 (mandatory last argument that can be empty):

```css
border-radius: if(style(--button-shape: pill), infinity, );
```

Option 2 (`default:` clause):
```css
border-radius: if(style(--button-shape: pill), infinity / default: );
```

One advantage of having a special value (e.g. `revert-declaration`?) is that perhaps we can improve on the IACVT behavior by keeping other declarations around when that is encountered (but probably we can't).

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


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

Received on Thursday, 13 June 2024 10:25:20 UTC