Test whether an element matches a CSS selector.
true if the element is a match, false otherwise.
true
false
This function uses the builtin browser capabilities when possible, falling back onto a document query otherwise.
The element of interest.
The valid CSS selector of interest.
Generated using TypeDoc
Test whether an element matches a CSS selector.
Returns
trueif the element is a match,falseotherwise.Notes
This function uses the builtin browser capabilities when possible, falling back onto a document query otherwise.