:is()

A CSS pseudo-class that matches any element matching one of the selectors in its list, such as :is(header, form) input.

In more detail

It shortens long selector lists and uses a forgiving selector list. Its specificity equals its most specific argument, so one ID inside raises the whole selector.

Related terms

Taught in

References