But at what cost? If it’s not a CSS builtin, it’s going to use JS - it may not be something you care about, but it will be there. There’s no other way.
It’s the same as how they enable media queries for example, they’re not using JS just plain CSS, but they’re making it available with these inline classes.
// Not actually needed, here
// for competition
.group {}
// Child selector
.group:hover group\/hover\:bg-black {
background-color: black;
}
// Which is essentially the same as
.group:hover child {
background-color: black;
}I don't think Tailwind has a built-in `:has` tool, but I suspect it would be easy to add one as a custom class.
EDIT: I'm sorry, I mixed you up with the other user who was replying criticising other people's CSS knowledge.
the second part of your answer answered it perfectly. Thanks