one of my favorite uses of #CSS `:has()` is to change the grid layout based on what's inside the grid
```
grid-template-areas: /* simple layout */
&:has(.thing) {
grid-template-areas: /* more complex layout */;
}
```
one of my favorite uses of #CSS `:has()` is to change the grid layout based on what's inside the grid
```
grid-template-areas: /* simple layout */
&:has(.thing) {
grid-template-areas: /* more complex layout */;
}
```
If you have a fediverse account, you can quote this note from your own instance. Search https://front-end.social/users/mayank/statuses/112480612486676906 on your instance and quote it. (Note that quoting is not supported in Mastodon.)