Skip to content

Commit

Permalink
Don't clamp HSL lightness
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Mar 30, 2024
1 parent cec35e7 commit 1325ed3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions spec/core_functions/color/adjust_color/hsl.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ a {b: adjust-color(red, $lightness: 100%)}

<===> lightness/max/output.css
a {
b: white;
b: hsl(0, 100%, 150%);
}

<===>
Expand Down Expand Up @@ -173,7 +173,7 @@ a {b: adjust-color(red, $lightness: -100%)}

<===> lightness/min/output.css
a {
b: black;
b: hsl(0, 100%, -50%);
}

<===>
Expand Down
2 changes: 1 addition & 1 deletion spec/core_functions/color/hsl/four_args/clamped.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ a {b: hsl(0, 100%, 9999%, 0.5)}

<===> blue/output.css
a {
b: hsla(0, 100%, 100%, 0.5);
b: hsla(0, 100%, 9999%, 0.5);
}

<===>
Expand Down
2 changes: 1 addition & 1 deletion spec/core_functions/color/hsl/one_arg/alpha.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ a {b: hsl(0 100% 9999% / 0.5)}

<===> clamped/lightness/output.css
a {
b: hsla(0, 100%, 100%, 0.5);
b: hsla(0, 100%, 9999%, 0.5);
}

<===>
Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/hsl/one_arg/no_alpha.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ a {b: hsl(0 100% 500%)}

<===> clamped/lightness/above/output.css
a {
b: hsl(0, 100%, 100%);
b: hsl(0, 100%, 500%);
}

<===>
Expand All @@ -63,7 +63,7 @@ a {b: hsl(0 100% -100%)}

<===> clamped/lightness/below/output.css
a {
b: hsl(0, 100%, 0%);
b: hsl(0, 100%, -100%);
}

<===>
Expand Down
4 changes: 2 additions & 2 deletions spec/core_functions/color/hsl/three_args/clamped.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ a {b: hsl(0, 100%, 500%)}

<===> lightness/above/output.css
a {
b: hsl(0, 100%, 100%);
b: hsl(0, 100%, 500%);
}

<===>
Expand All @@ -28,5 +28,5 @@ a {b: hsl(0, 100%, -100%)}

<===> lightness/below/output.css
a {
b: hsl(0, 100%, 0%);
b: hsl(0, 100%, -100%);
}
2 changes: 1 addition & 1 deletion spec/core_functions/color/is_in_gamut.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ a {b: color.is-in-gamut(hsl(0 0% -1%))}

<===> hsl/output.css
a {
b: true;
b: false;
}

<===>
Expand Down

0 comments on commit 1325ed3

Please sign in to comment.