When setting a color property to a CSS color like 'white' or 'orange', the color widget displays it as black. The widget handles converting from the short hand hex variant #333, but does not handle color names, or HSL values.
I can write a quick patch for this, but wondering what's more desirable -- using a lib like color-string (+14kb unminified, +500b minified), or putting the supplied color value into a div and using window.getComputedStyle and converting by hand the supplied HSL values. Both methods should handle any color format.
When setting a color property to a CSS color like 'white' or 'orange', the color widget displays it as black. The widget handles converting from the short hand hex variant
#333
, but does not handle color names, or HSL values.I can write a quick patch for this, but wondering what's more desirable -- using a lib like color-string (+14kb unminified, +500b minified), or putting the supplied color value into a div and using
window.getComputedStyle
and converting by hand the supplied HSL values. Both methods should handle any color format.