[:has() pseudo-class] Invalidation support for adding and removing elements