Skip to content

Instantly share code, notes, and snippets.

@gmcusaro
Created June 16, 2022 08:51
Show Gist options
  • Save gmcusaro/deaf707d54cd00bbdcd16e556449fc1f to your computer and use it in GitHub Desktop.
Save gmcusaro/deaf707d54cd00bbdcd16e556449fc1f to your computer and use it in GitHub Desktop.
:is() pseudo class
.section h1,
.section .text,
.section p {
/* your code*/
}
/* can be simplified as */
.section :is(h1, .text, p) {
/*your code*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment