JSFiddle - React, Tailwind, and code Playground
by rluuan
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div class='a'>
teste
<div class='b'>
teste
</div>
</div>
</body>
</html>
CSS
.b:has(>div.a) {
color: red
}
.b {
color: blue;
}