- From: Tim Nguyen via GitHub <noreply@w3.org>
- Date: Mon, 28 Jul 2025 16:33:47 +0000
- To: public-css-archive@w3.org
As Una says, the basic equality use case is pretty much already achievable using current selectors:
```
.card {
border: 1px solid gray;
grid-column: 3;
background-color: #f7f7f7;
&[data-status="pending"] {
border-color: royalblue;
background-color: #eff7fa;
grid-column: 1;
}
&[data-status="complete"] {
border-color: seagreen;
background-color: #f6fff6;
grid-column: 2;
}
}
```
For typed conversions, it would probably make more sense to expand the attribute selectors first.
--
GitHub Notification of comment by nt1m
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12519#issuecomment-3128065354 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 28 July 2025 16:33:47 UTC