Šime Vidas on Nostr: X:has(Y) = X that contains Y X:has(> Y) = X that has a child Y X:has(+ Y) = X that ...
X:has(Y) = X that contains Y
X:has(> Y) = X that has a child Y
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 Z
What other useful (simple) selector patterns with :has() are there?
(https://ishadeed.com/article/css-has-guide)
X:has(> Y) = X that has a child Y
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 Z
What other useful (simple) selector patterns with :has() are there?
(https://ishadeed.com/article/css-has-guide)