cheat/dev

:is() / :where() / :not()

Agrupam ou excluem seletores para evitar repetição.

Sintaxe

:is(h1, h2, h3) { }
:not(.ativo) { }

:is() e :where() aceitam uma lista e casam com qualquer um deles (:where tem especificidade zero, :is herda a maior da lista). :not() exclui o que casar com o seletor dentro dos parênteses.

Exemplo

:is(h1, h2, h3) {
  font-family: "Space Grotesk", sans-serif;
}

li:not(:last-child) {
  border-bottom: 1px solid #eee;
}