Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save achudars/5520615 to your computer and use it in GitHub Desktop.
Save achudars/5520615 to your computer and use it in GitHub Desktop.
Matches-any pseudo-class in CSS
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