Module talk:Colors/testcases

Rendered with Parsoid
From Wikitech

All tests passed.

test_hsla2rgba:

TextExpectedActual
{{#invoke:Colors|hsla2rgba|h=240|s=100|l=75|a=0.25}} rgba(128, 128, 255, 0.25) rgba(128, 128, 255, 0.25)
{{#invoke:Colors|hsl2hex|h=240|s=100|l=35}} #0000b3 #0000b3
{{#invoke:Colors|hsla2rgba|h=120|s=100|l=75|a=0.25}} rgba(128, 255, 128, 0.25) rgba(128, 255, 128, 0.25)