Accept hsl/hsla colors in type-of() (#14098)

Change-Id: Ie28210226080c5627745208c8e78852a40be1c42