Skip to content

Commit 7c3750d

Browse files
mgreternex3
authored andcommitted
Enable partially passing libsass spec tests (#1488)
1 parent cd345f2 commit 7c3750d

22 files changed

+291
-95
lines changed

spec/core_functions/color/hsl/four_args/alpha.hrx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<===> options.yml
2+
---
3+
:todo:
4+
- sass/libsass#2722
5+
6+
<===>
7+
================================================================================
18
<===> percent/negative/input.scss
29
a {b: hsl(0, 0, 0, -10%)}
310

spec/core_functions/color/hsl/four_args/clamped.hrx

+15-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Channels that are out of bounds are clamped within bounds.
33

44
<===>
55
================================================================================
6+
<===> saturation/options.yml
7+
---
8+
:todo:
9+
- sass/libsass#2722
10+
611
<===> saturation/input.scss
712
a {b: hsl(0, -0.1%, 50%, 0.5)}
813

@@ -13,6 +18,11 @@ a {
1318

1419
<===>
1520
================================================================================
21+
<===> blue/options.yml
22+
---
23+
:todo:
24+
- sass/libsass#2722
25+
1626
<===> blue/input.scss
1727
a {b: hsl(0, 100%, 9999%, 0.5)}
1828

@@ -23,6 +33,11 @@ a {
2333

2434
<===>
2535
================================================================================
36+
<===> alpha/above/options.yml
37+
---
38+
:todo:
39+
- sass/libsass#2722
40+
2641
<===> alpha/above/input.scss
2742
a {b: hsl(0, 100%, 50%, 1.1)}
2843

@@ -40,4 +55,3 @@ a {b: rgba(0, 100%, 50%, -0.1)}
4055
a {
4156
b: rgba(0, 255, 128, 0);
4257
}
43-

spec/core_functions/color/hsl/four_args/in_gamut.hrx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<===> options.yml
2+
---
3+
:todo:
4+
- sass/libsass#2722
5+
6+
<===>
7+
================================================================================
18
<===> transparent/input.scss
29
a {b: hsl(180, 60%, 50%, 0)}
310

spec/core_functions/color/hsl/four_args/options.yml

-3
This file was deleted.

spec/core_functions/color/hsl/four_args/special_functions.hrx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<===> options.yml
22
---
33
:todo:
4-
- sass/libsass#2726
5-
:ignore_for:
4+
- sass/libsass#2722
65

76
<===>
87
================================================================================

spec/core_functions/color/hsl/multi_argument_var.hrx

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<===> options.yml
2-
---
3-
:todo:
4-
- libsass
5-
6-
<===>
7-
================================================================================
81
<===> 1_of_3/input.scss
92
// var() is substituted before parsing, so it may contain multiple arguments.
103
a {b: hsl(var(--foo), 3%, 0.4)}
@@ -36,6 +29,11 @@ a {
3629

3730
<===>
3831
================================================================================
32+
<===> 1_of_2/options.yml
33+
---
34+
:todo:
35+
- libsass
36+
3937
<===> 1_of_2/input.scss
4038
a {b: hsl(var(--foo), 0.4)}
4139

@@ -46,6 +44,11 @@ a {
4644

4745
<===>
4846
================================================================================
47+
<===> 2_of_2/options.yml
48+
---
49+
:todo:
50+
- libsass
51+
4952
<===> 2_of_2/input.scss
5053
a {b: hsl(1, var(--foo))}
5154

@@ -56,6 +59,11 @@ a {
5659

5760
<===>
5861
================================================================================
62+
<===> 1_of_1/options.yml
63+
---
64+
:todo:
65+
- libsass
66+
5967
<===> 1_of_1/input.scss
6068
a {b: hsl(var(--foo))}
6169

spec/core_functions/color/hsla/four_args/special_functions.hrx

+60-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<===> options.yml
2-
---
3-
:todo:
4-
- sass/libsass#2726
5-
6-
<===>
7-
================================================================================
81
<===> calc/arg_1/input.scss
92
a {b: hsla(calc(1), 2%, 3%, 0.4)}
103

@@ -85,6 +78,11 @@ a {
8578

8679
<===>
8780
================================================================================
81+
<===> env/arg_1/options.yml
82+
---
83+
:todo:
84+
- sass/libsass#2726
85+
8886
<===> env/arg_1/input.scss
8987
a {b: hsla(env(--foo), 2%, 3%, 0.4)}
9088

@@ -95,6 +93,11 @@ a {
9593

9694
<===>
9795
================================================================================
96+
<===> env/arg_2/options.yml
97+
---
98+
:todo:
99+
- sass/libsass#2726
100+
98101
<===> env/arg_2/input.scss
99102
a {b: hsla(1, env(--foo), 3%, 0.4)}
100103

@@ -105,6 +108,11 @@ a {
105108

106109
<===>
107110
================================================================================
111+
<===> env/arg_3/options.yml
112+
---
113+
:todo:
114+
- sass/libsass#2726
115+
108116
<===> env/arg_3/input.scss
109117
a {b: hsla(1, 2%, env(--foo), 0.4)}
110118

@@ -115,6 +123,11 @@ a {
115123

116124
<===>
117125
================================================================================
126+
<===> env/arg_4/options.yml
127+
---
128+
:todo:
129+
- sass/libsass#2726
130+
118131
<===> env/arg_4/input.scss
119132
a {b: hsla(1, 2%, 3%, env(--foo))}
120133

@@ -125,6 +138,11 @@ a {
125138

126139
<===>
127140
================================================================================
141+
<===> min/arg_1/options.yml
142+
---
143+
:todo:
144+
- sass/libsass#2726
145+
128146
<===> min/arg_1/input.scss
129147
a {b: hsla(min(1), 2%, 3%, 0.4)}
130148

@@ -135,6 +153,11 @@ a {
135153

136154
<===>
137155
================================================================================
156+
<===> min/arg_2/options.yml
157+
---
158+
:todo:
159+
- sass/libsass#2726
160+
138161
<===> min/arg_2/input.scss
139162
a {b: hsla(1, min(2%), 3%, 0.4)}
140163

@@ -145,6 +168,11 @@ a {
145168

146169
<===>
147170
================================================================================
171+
<===> min/arg_3/options.yml
172+
---
173+
:todo:
174+
- sass/libsass#2726
175+
148176
<===> min/arg_3/input.scss
149177
a {b: hsla(1, 2%, min(3%), 0.4)}
150178

@@ -155,6 +183,11 @@ a {
155183

156184
<===>
157185
================================================================================
186+
<===> min/arg_4/options.yml
187+
---
188+
:todo:
189+
- sass/libsass#2726
190+
158191
<===> min/arg_4/input.scss
159192
a {b: hsla(1, 2%, 3%, min(0.4))}
160193

@@ -165,6 +198,11 @@ a {
165198

166199
<===>
167200
================================================================================
201+
<===> max/arg_1/options.yml
202+
---
203+
:todo:
204+
- sass/libsass#2726
205+
168206
<===> max/arg_1/input.scss
169207
a {b: hsla(max(1), 2%, 3%, 0.4)}
170208

@@ -175,6 +213,11 @@ a {
175213

176214
<===>
177215
================================================================================
216+
<===> max/arg_2/options.yml
217+
---
218+
:todo:
219+
- sass/libsass#2726
220+
178221
<===> max/arg_2/input.scss
179222
a {b: hsla(1, max(2%), 3%, 0.4)}
180223

@@ -185,6 +228,11 @@ a {
185228

186229
<===>
187230
================================================================================
231+
<===> max/arg_3/options.yml
232+
---
233+
:todo:
234+
- sass/libsass#2726
235+
188236
<===> max/arg_3/input.scss
189237
a {b: hsla(1, 2%, max(3%), 0.4)}
190238

@@ -195,6 +243,11 @@ a {
195243

196244
<===>
197245
================================================================================
246+
<===> max/arg_4/options.yml
247+
---
248+
:todo:
249+
- sass/libsass#2726
250+
198251
<===> max/arg_4/input.scss
199252
a {b: hsla(1, 2%, 3%, max(0.4))}
200253

spec/core_functions/color/mix.hrx

-5
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@ a {
204204

205205
<===>
206206
================================================================================
207-
<===> named/options.yml
208-
---
209-
:todo:
210-
- sass/libsass#2894
211-
212207
<===> named/input.scss
213208
a {b: mix($color1: #91e16f, $color2: #0144bf, $weight: 92%)}
214209

spec/core_functions/color/rgb/multi_argument_var.hrx

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<===> options.yml
2-
---
3-
:todo:
4-
- libsass
5-
6-
<===>
7-
================================================================================
81
<===> 1_of_3/input.scss
92
// var() is substituted before parsing, so it may contain multiple arguments.
103
a {b: rgb(var(--foo), 3, 0.4)}
@@ -36,6 +29,11 @@ a {
3629

3730
<===>
3831
================================================================================
32+
<===> 1_of_2/options.yml
33+
---
34+
:todo:
35+
- libsass
36+
3937
<===> 1_of_2/input.scss
4038
a {b: rgb(var(--foo), 0.4)}
4139

@@ -46,6 +44,11 @@ a {
4644

4745
<===>
4846
================================================================================
47+
<===> 2_of_2/options.yml
48+
---
49+
:todo:
50+
- libsass
51+
4952
<===> 2_of_2/input.scss
5053
a {b: rgb(1, var(--foo))}
5154

@@ -56,6 +59,11 @@ a {
5659

5760
<===>
5861
================================================================================
62+
<===> 1_of_1/options.yml
63+
---
64+
:todo:
65+
- libsass
66+
5967
<===> 1_of_1/input.scss
6068
a {b: rgb(var(--foo))}
6169

0 commit comments

Comments
 (0)