[go: up one dir, main page]

hsl() parsing wrong

Parsing of hsl() is wrong.

In CSS Color 3, only percent value are allowed for 's' and 'l'. (If there are commas between numbers, it will be parsed as level 3.)

In CSS Color 4, the range for 's' and 'l' is 0 to 100, not 0 to 1. Note that in level 4 hsl() and hsla() appear to be identical, alpha is optional in both (using the new syntax with " / " as separator).