Computing the result
Hex values are correctly converted to RGB, however keywords (even valid ones) are not. If CSSStyle intends to emulate a browser's behavior, it should convert everything to RGB or RGBA
TLDR
CSSStyle doesn't handle color values correctly
Keywords CSS has hundreds of color keywords, but CSSStyle only recognizes a few https://github.com/chad3814/CSSStyleDeclaration/blob/master/lib/parsers.js#L100-L116
HSL and HSLA CSSStyle has no logic to interpret HSL or HSLA values. Here's the regex for Hex, RGA, and RGBA. HSL and HSLA are missing.
https://github.com/chad3814/CSSStyleDeclaration/blob/master/lib/parsers.js#L28-L30
Computing the result Hex values are correctly converted to RGB, however keywords (even valid ones) are not. If CSSStyle intends to emulate a browser's behavior, it should convert everything to RGB or RGBA
TLDR CSSStyle doesn't handle color values correctly