• Check if a CSS custom property is registered. This function will return false for custom properties that behave identically to non-registered properties (e.g., registered inherited properties with syntax “*”).

    Parameters

    • property: string

      The property to check.

    • Optionalwindow: Window = globalThis

      The window to check in.

    Returns boolean