Skip to content

Commit af67faf

Browse files
committed
Clamp colour ctor arguments for hsl and hsla functions
1 parent 5d3b4b3 commit af67faf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/functions.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ namespace Sass {
388388
BUILT_IN(hsl)
389389
{
390390
return hsla_impl(ARG("$hue", Number)->value(),
391-
ARGR("$saturation", Number, 0, 100)->value(),
392-
ARGR("$lightness", Number, 0, 100)->value(),
391+
ARG("$saturation", Number)->value(),
392+
ARG("$lightness", Number)->value(),
393393
1.0,
394394
ctx,
395395
pstate);
@@ -399,9 +399,9 @@ namespace Sass {
399399
BUILT_IN(hsla)
400400
{
401401
return hsla_impl(ARG("$hue", Number)->value(),
402-
ARGR("$saturation", Number, 0, 100)->value(),
403-
ARGR("$lightness", Number, 0, 100)->value(),
404-
ARGR("$alpha", Number, 0, 1)->value(),
402+
ARG("$saturation", Number)->value(),
403+
ARG("$lightness", Number)->value(),
404+
ARG("$alpha", Number)->value(),
405405
ctx,
406406
pstate);
407407
}

0 commit comments

Comments
 (0)