attr?
CSS
-
(attr?
attribute-keyword*)
sample usage:
(attr? :href) ; *[href]
(attr? :href :title) ; *[href][title]
attr=
CSS
-
(attr=
(attribute-keyword value)*)
sample usage:
(attr= :href "foo") ; *[href=foo]
(attr= :href "foo" :title "bar") ; *[href=foo][title=bar]
attr-has
CSS
-
(attr-has
(attribute-keyword value)*)
sample usage:
(attr-has :foo "bar" "baz") ; *[foo~=bar][foo~=baz]
attr-starts
CSS
-
(attr-starts
(attribute-keyword value)*)
sample usage:
(attr-starts :href "foo" :title "bar"); *[href^=foo][title^=bar]
attr-ends
CSS
-
(attr-ends
(attribute-keyword value)*)
sample usage:
(attr-ends :href "foo" :title "bar") ; *[href$=foo][title$=bar]
attr-contains
CSS
-
(attr-contains
(attribute-keyword value)*)
sample usage:
(attr-contains :href "foo" :title "bar") ; *[href*=foo][title*=bar]
attr|=
CSS
-
(attr|=
(attribute-keyword value)*)
sample usage:
(attr|= :lang "fr") ; *[lang|=fr]
nth-child
CSS
-
(nth-child
stride? offset)
sample usage:
(nth-child 3) ; *:nth-child(3)
(nth-child 4 2) ; *:nth-child(4n+2)
nth-last-child
CSS
-
(nth-last-child
stride? offset)
sample usage:
(nth-last-child 3) ; *:nth-last-child(3)
(nth-last-child 4 2) ; *:nth-last-child(4n+2)
nth-of-type
CSS
-
(nth-of-type
stride? offset)
sample usage:
(nth-of-type 3) ; *:nth-of-type(3)
(nth-of-type 4 2) ; *:nth-of-type(4n+2)
nth-last-of-type
CSS
-
(nth-last-of-type
stride? offset)
sample usage:
(nth-last-of-type 3) ; *:nth-last-of-type(3)
(nth-last-of-type 4 2) ; *:nth-last-of-type(4n+2)
but
CSS
-
sample usage:
(but :a) ; :not(a)
has
-
sample usage:
(has [:a])