: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.

Quick 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.

Safe to use without fallbacks.

88+
78+
14+
88+
ESC