Tries to get the color as object representation from the style declaration. If unset (or empty) returns undefined. Color names are returned as is. The same applies to values similar to color names, such as transparent or currentcolor.
undefined
transparent
currentcolor
style declaration to get color from
undefined for unset and/or unmatched color; string for color names or similar; RgbColor for parseable colors.
RgbColor
Tries to get the color as object representation from the style declaration. If unset (or empty) returns
undefined. Color names are returned as is. The same applies to values similar to color names, such astransparentorcurrentcolor.