:has()
Term side of the Card
Topic: Pseudo Classes
Unit title: :has()
Categories: Pseudo-class
Explanation side of the Card
Explanation: The pseudo-class that allows selecting an element based on its children or descendants. It acts like a parent selector, allowing styles to be applied to an element if it contains another element that matches the criteria within `:has()`.
Browser compatibility:
- The chrome browser supports this feature starting from version 105
- The edge browser supports this feature starting from version 105
- The firefox browser supports this feature starting from version 121
- The safari browser supports this feature starting from version 15.4
Availability: