libsass icon indicating copy to clipboard operation
libsass copied to clipboard

Incorrect calling conventions for *-color()

Open nex3 opened this issue 5 years ago • 1 comments

The adjust-color(), scale-color(), and change-color() functions should all allow exactly one positional argument and any number of keyword arguments. LibSass throws errors when zero keyword arguments are passed (as in adjust-color(red), which should return red) and fails to throw errors when more arguments are passed by position (as in adjust-color(red, 1)).

nex3 avatar May 30 '19 17:05 nex3

The error messages when a non-number is passed to any keyword argument (as in adjust-color(red, $red: a) are also wrong. LibSass says not enough arguments for `adjust-color', but the issue is that one of the arguments has the wrong type.

nex3 avatar May 31 '19 13:05 nex3