Element, EventTarget, or CSS selector.
Name of the style property to check for.
Optional
value: StyleValueOptional style property value to check for.
true
if the specified style is present.
elements!InvalidElementError
if the target
could not be found or doesn't have a style property.
Checks if the specified
target
has the specified style property with namekey
. If avalue
is specified, checks that the values match.