Value to validate as a CSS selector.
OptionalallowEmpty?: booleanWhether an empty or whitespace-only string is accepted. Defaults to false.
Optionalroot?: ParentNodeQuery root used to validate browser support. Defaults to document when available.
Whether the selector is accepted by the query root.
Check whether a value is a CSS selector supported by the supplied query root without allowing selector syntax errors to escape.
Usage: