• Test whether a selector is a valid CSS selector.

    Parameters

    • selector: string

      The CSS selector of interest.

    Returns boolean

    true if the selector is valid, false otherwise.

    Notes

    The computed result is cached, so subsequent tests for the same selector are extremely fast.