svgo icon indicating copy to clipboard operation
svgo copied to clipboard

Add hsl() support

Open vanillajonathan opened this issue 4 years ago • 3 comments

Add HSL support, closes #1468

vanillajonathan avatar Apr 17 '21 14:04 vanillajonathan

Hi! hsl() function has different syntaxes and might contain different units. The regexp you added doesn't process alpha values, hsla prefix, deg and rad units, modern slash syntax, etc.

omgovich avatar Oct 08 '21 11:10 omgovich

So it can be improved, but it is still valuable as it is. In case the regex does not match, it just doesn't transform it and leaves it as it is.

vanillajonathan avatar Oct 08 '21 11:10 vanillajonathan

@TrySound Can you fix and merge this?

vanillajonathan avatar Oct 08 '21 11:10 vanillajonathan