If the input object has h, s and l properties, it will return a fully- formed Hsl type with unit and space properties.
unit
space
If it lacks these basic three properties or they are out of range, undefined is returned.
If HSL values are less than 1 assumes unit:scalar. Otherwise unit:8bit. If HSL values exceed 100, undefined returned.
Hsl object or undefined if the input object is not a valid Hsl type.
If the input object has h, s and l properties, it will return a fully- formed Hsl type with
unitandspaceproperties.If it lacks these basic three properties or they are out of range, undefined is returned.
If HSL values are less than 1 assumes unit:scalar. Otherwise unit:8bit. If HSL values exceed 100, undefined returned.