This feature is experimental. It may be changed or removed in a future version.
Returns whether the given element matches the given CSS selector.
Other than up.element.matches()
this function supports non-standard selectors
like :main
or :layer
.
The layer for which to match.
Pseudo-selectors like :main
may expand to different selectors
in different layers.
Required if { layer: 'new' }
is passed.