Created
July 12, 2011 11:46
-
-
Save twiss/1077822 to your computer and use it in GitHub Desktop.
Defines :any(selector)
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
/* :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