resolveElementColor
Function
Definition
Package:@progress/kendo-drawing
Resolves the color of the specified CSS property of an element to an RGB color string.
Supports standard CSS color formats and relative color functions (e.g., oklch()) by leveraging the browser's CSS parsing capabilities.
Parameters:elementElement
The DOM element whose color is to be resolved.
colorPropstringThe CSS property name (e.g., 'color', 'backgroundColor') whose color is to be resolved.
Returns:string
The resolved hex color string (e.g., '#ff0000' or '#ff0000aa').