CSS :has() - The Parent Selector We've Always Wanted

from blog Trevor I. Lasn Thoughts, | ↗ original
↗ original
Transform your CSS with :has(), the game-changing selector that finally lets us style elements based on their children.