simevidas, (edited ) X:has(Y) = X that contains Y
X:has(> Y) = X that has a child Y
X:has(> :last-child:nth-child(n)) = X that has n children (for n > 0)
X:has(+ Y) = X that has a next sibling Y
X:not(:has(Y)) = X that doesn’t contain Y
X:has(Y):has(Z) = X that contains Y and Z
X:has(Y, Z) = X that contains Y or ZWhat other useful (simple) selector patterns with :has() are there?
Add comment