Created
February 25, 2024 14:50
-
-
Save Lego2012/b1851bd9542cef7a80d41bc8d928a6b8 to your computer and use it in GitHub Desktop.
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
/* Old way */ | |
ul li a, | |
ol li a { | |
color: yellow; | |
} | |
/* Modern way */ | |
:is(ul, ol) a { | |
color: black; | |
} | |
main h1, | |
main h2, | |
main h3 { | |
color: red; | |
} | |
main :where(h1, h2, h3) { | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment