:where()
Matches any element in its list of arguments, but always has zero specificity. It is ideal for setting default styles that are intended to be easily overridden.
Syntax
/* Usage Example */
:where(h1, h2, h3) {
/* Sets a default margin that can be overridden by a single class name elsewhere */
margin-top: 2rem;
}
:where() Browser support
Widely available
Since
2021 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.
88+
78+
14+
88+