public interface Selector
Modifier and Type | Method and Description |
---|---|
boolean |
fit(Element element)
Checks whether or not the given element fits this selector.
|
int |
getSpecificity()
Gets the selector specificity.
|
boolean fit(@NonNull Element element)
element
- the element to test.true
if the given element fit this selector, false
otherwise.int getSpecificity()
See CSS for more information about calculating a selector's specificity.