You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Module talk:Colors/testcases

From Wikitech-static
Jump to navigation Jump to search

All tests passed.

test_hsla2rgba:

Text Expected Actual
Yes check.svg {{#invoke:Colors|hsla2rgba|h=240|s=100|l=75|a=0.25}} rgba(128, 128, 255, 0.25) rgba(128, 128, 255, 0.25)
Yes check.svg {{#invoke:Colors|hsl2hex|h=240|s=100|l=35}} #0000b3 #0000b3
Yes check.svg {{#invoke:Colors|hsla2rgba|h=120|s=100|l=75|a=0.25}} rgba(128, 255, 128, 0.25) rgba(128, 255, 128, 0.25)