Last active
December 17, 2015 00:19
-
-
Save achudars/5520615 to your computer and use it in GitHub Desktop.
Matches-any pseudo-class in CSS
This file contains hidden or 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
section h1, article h1, aside h1 { | |
color: red; | |
} | |
/* Is the same as */ | |
:matches(section, article, aside) h1 { | |
color: red; | |
} | |
/* Working, prefixed examples. Note: Mozilla and WebKit uses their own syntax :-prefix-any */ | |
:-moz-any(section, article, aside) h1, | |
:-webkit-any(section, article, aside) h1{ | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment