Définir CSS sur l'élément parent CSS

li:has(> a.active) { /* styles to apply to the li tag */ }
Eugene Rubio