:where()
A CSS pseudo-class that works like :is() but always adds zero specificity, whatever its arguments.
In more detail
Its selector list is forgiving, like :is(). That makes it ideal for library and default styles that consumers should be able to override with any simple selector.
Related terms
- :is() — A CSS pseudo-class that matches any element matching one of the selectors in its list, such as :is(header, form) input.
- specificity — The weight the browser gives a CSS selector, used to decide which rule wins when two set the same property.
Taught in
- Modern Selectors: :has(), :is(), :where() And Nesting Standards — Frontend Architecture & Web Platform