• Checks if the specified target has the specified style property with name key. If a value is specified, checks that the values match.

    Parameters

    • target: null | Target

      Element, EventTarget, or CSS selector.

    • key: StyleKey

      Name of the style property to check for.

    • Optionalvalue: StyleValue

      Optional style property value to check for.

    Returns boolean

    true if the specified style is present.

    elements!InvalidElementError if the target could not be found or doesn't have a style property.