Last active
December 9, 2022 20:15
-
-
Save argyleink/229e90e477673520edc3414d3913f0c5 to your computer and use it in GitHub Desktop.
light intro to the :is() selector syntax and value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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) { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
p:is('.best')