CSS :has() — The Native Parent Selector
CSS :has() — The Native Parent Selector
Description
The CSS :has() relational pseudo-class is the parent selector developers have wanted for 20 years. It lets you style an element based on what it contains — reversing the normal CSS cascade direction...
nobodywrites.hashnode.dev3 min read