vscode-colorize icon indicating copy to clipboard operation
vscode-colorize copied to clipboard

Add support for the following HSL syntax

Open spacecat opened this issue 1 year ago • 3 comments

Add support for the following HSL syntax:

hsl(360 50% 50%) hsl(360deg 50% 50%) hsl(360deg, 50%, 50%)

Note: The legacy hsla() syntax is an alias for hsl(), accepting the same parameters and behaving in the same way.

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl

So hsla regex should be removed IMO.

spacecat avatar Feb 04 '24 14:02 spacecat

@KamiKillertO you think you have some time to check this PR? 🙂

spacecat avatar Feb 04 '24 14:02 spacecat

@spacecat Can you add some tests?

KamiKillertO avatar Feb 15 '24 13:02 KamiKillertO

Sorry, life caught up with me.. been and am very busy so won't be able to create tests in a while if ever... :( I hope someone else can find some time to do it or create an entirely new PR.

spacecat avatar Jun 23 '24 22:06 spacecat