Skip to content

Instantly share code, notes, and snippets.

@twiss
Created July 12, 2011 11:46
Show Gist options
  • Save twiss/1077822 to your computer and use it in GitHub Desktop.
Save twiss/1077822 to your computer and use it in GitHub Desktop.
Defines :any(selector)
/* :any(selector)
* requires Slick
* originally implemented by Firefox as :-moz-any()
* also supported by webkit as :webkit-any()
* example:
* :any(p, section) :any(pre, code) -- selects a pre or code tag in a p or section
* p pre, p code, section pre, section code -- same, but longer and less readable
*/
Slick.definePseudo('any', function(arg) {
return Slick.match(this, arg);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment