Код: Выделить всё
parent
[list]
[*]
child
[/list]
.parent:has(+ .active) {
background: red;
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... as-a-class
Код: Выделить всё
parent
[list]
[*]
child
[/list]
.parent:has(+ .active) {
background: red;
}