CodeZettaInterview Hub

CSS · Selectors · Junior · Comparison

When do you use :is() vs :where()?

Short Interview Answer

Both list selectors; :is() keeps specificity of its most specific arg; :where() is always zero.

Detailed Explanation

:where() is great for resets. :is() for grouping without repetition.

Did you know this answer?