Re: [csswg-drafts] [css-values] Key-Value and Index Maps for attr() (#4484)

This is now doable with the `if()` function:

```
--foo: attr(party);
background-color: if(
  style(--foo: "Dem"): blue;
  style(--foo: "Rep"): red;
  style(--foo: "Grn"): green;
  else: gray);
```

So, closing as addressed. ^_^

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


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

Received on Saturday, 8 March 2025 01:43:10 UTC