I would like to style the div element only if section has :before pseudo.
<section>
<div>something</div>
</section>
Something like this:
section:has(:before) {
div {
background-color: grey;
}
}
I would like to style the div element only if section has :before pseudo.
<section>
<div>something</div>
</section>
Something like this:
section:has(:before) {
div {
background-color: grey;
}
}