タイトルが示すように、このスニペット:
.group {
width: 100px;
height: 100px;
background-color: blue;
}
.group:empty {
background-color: red;
}
.hideme {
display: none;
}
<div class="group">
<div class="hideme">
hello
</div>
</div>
赤い背景を与えることができません。:empty
子供がいる場合にも一致する代替品はありdisplay:none
ますか?