Skip to content

Instantly share code, notes, and snippets.

@argyleink
Last active December 9, 2022 20:15
Show Gist options
  • Save argyleink/229e90e477673520edc3414d3913f0c5 to your computer and use it in GitHub Desktop.
Save argyleink/229e90e477673520edc3414d3913f0c5 to your computer and use it in GitHub Desktop.
light intro to the :is() selector syntax and value
/* before :is() */
button.focus,
button:focus {
...
}
/* after :is() */
button:is(.focus, :focus) {
...
}
/* before :is() */
article > h1,
article > h2,
article > h3,
article > h4,
article > h5,
article > h6 {
...
}
/* after :is() */
article > :is(h1,h2,h3,h4,h5,h6) {
...
}
@zubizubwork
Copy link

p:is('.best')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment