Interface ICssSelectorItem
- All Known Implementing Classes:
-
CssAttributeSelectorItem
,CssClassSelectorItem
,CssIdSelectorItem
,CssPagePseudoClassSelectorItem
,CssPageTypeSelectorItem
,CssPseudoClassSelectorItem
,CssPseudoElementSelectorItem
,CssSeparatorSelectorItem
,CssTagSelectorItem
public interface ICssSelectorItem
Interface for CSS selector items.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the specificity.boolean
Checks if the selector matches an element.
-
Method Details
-
getSpecificity
int getSpecificity()Gets the specificity.- Returns:
- the specificity
-
matches
Checks if the selector matches an element.- Parameters:
-
element
- the element - Returns:
- true, if there's a match
-