Parents counting children in CSS

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
The other day I was driving home when suddenly it hit me: We can use :has() to determine how many children a parent element has.You might be thinking that Heydon Pickering already solved that 7 years ago in Quantity Queries for CSS, but that's not what I'm talking about. /* Quantity Queries for CSS by Heydon Pickering */ /* Three or more items...