Skip to content

Commit 1122ec7

Browse files
committed
Fix lots of libsass errors
1 parent 2e9cb9e commit 1122ec7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2046
-10
lines changed

spec/core_functions/color/adjust_hue.hrx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@ Error: $color: 1 is not a color.
115115
'
116116
input.scss 1:7 root stylesheet
117117

118+
<===> error/type/color/error-libsass
119+
Error: $color: 1 is not a color.
120+
,
121+
1 | a {b: adjust-hue(1, 2)}
122+
| ^
123+
'
124+
input.scss 1:18 adjust-hue
125+
,
126+
1 | a {b: adjust-hue(1, 2)}
127+
| ^^^^^^^^^^^^^^^^
128+
'
129+
input.scss 1:7 root stylesheet
130+
118131
<===>
119132
================================================================================
120133
<===> error/type/hue/input.scss
@@ -128,3 +141,15 @@ Error: $degrees: blue is not a number.
128141
'
129142
input.scss 1:7 root stylesheet
130143

144+
<===> error/type/hue/error-libsass
145+
Error: $degrees: blue is not a number.
146+
,
147+
1 | a {b: adjust-hue(red, blue)}
148+
| ^^^^
149+
'
150+
input.scss 1:23 adjust-hue
151+
,
152+
1 | a {b: adjust-hue(red, blue)}
153+
| ^^^^^^^^^^^^^^^^^^^^^
154+
'
155+
input.scss 1:7 root stylesheet

spec/core_functions/color/blue.hrx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,15 @@ Error: $color: 1 is not a color.
7575
'
7676
input.scss 1:7 root stylesheet
7777

78+
<===> error/type/error-libsass
79+
Error: $color: 1 is not a color.
80+
,
81+
1 | a {b: blue(1)}
82+
| ^
83+
'
84+
input.scss 1:12 blue
85+
,
86+
1 | a {b: blue(1)}
87+
| ^^^^^^^
88+
'
89+
input.scss 1:7 root stylesheet

spec/core_functions/color/complement.hrx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,15 @@ Error: $color: 1 is not a color.
105105
'
106106
input.scss 1:7 root stylesheet
107107

108+
<===> error/type/error-libsass
109+
Error: $color: 1 is not a color.
110+
,
111+
1 | a {b: complement(1)}
112+
| ^
113+
'
114+
input.scss 1:18 complement
115+
,
116+
1 | a {b: complement(1)}
117+
| ^^^^^^^^^^^^^
118+
'
119+
input.scss 1:7 root stylesheet

spec/core_functions/color/darken.hrx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,19 @@ Error: $color: 1 is not a color.
105105
'
106106
input.scss 1:7 root stylesheet
107107

108+
<===> error/type/color/error-libsass
109+
Error: $color: 1 is not a color.
110+
,
111+
1 | a {b: darken(1, 2)}
112+
| ^
113+
'
114+
input.scss 1:14 darken
115+
,
116+
1 | a {b: darken(1, 2)}
117+
| ^^^^^^^^^^^^
118+
'
119+
input.scss 1:7 root stylesheet
120+
108121
<===>
109122
================================================================================
110123
<===> error/type/lightness/input.scss
@@ -118,6 +131,19 @@ Error: $amount: blue is not a number.
118131
'
119132
input.scss 1:7 root stylesheet
120133

134+
<===> error/type/lightness/error-libsass
135+
Error: $amount: blue is not a number.
136+
,
137+
1 | a {b: darken(red, blue)}
138+
| ^^^^
139+
'
140+
input.scss 1:19 darken
141+
,
142+
1 | a {b: darken(red, blue)}
143+
| ^^^^^^^^^^^^^^^^^
144+
'
145+
input.scss 1:7 root stylesheet
146+
121147
<===>
122148
================================================================================
123149
<===> error/bounds/too_low/input.scss
@@ -131,6 +157,19 @@ Error: $amount: Expected -0.001 to be within 0 and 100.
131157
'
132158
input.scss 1:7 root stylesheet
133159

160+
<===> error/bounds/too_low/error-libsass
161+
Error: $amount: Expected -0.001 to be within 0 and 100.
162+
,
163+
1 | a {b: darken(red, -0.001)}
164+
| ^^^^^^
165+
'
166+
input.scss 1:19 darken
167+
,
168+
1 | a {b: darken(red, -0.001)}
169+
| ^^^^^^^^^^^^^^^^^^^
170+
'
171+
input.scss 1:7 root stylesheet
172+
134173
<===>
135174
================================================================================
136175
<===> error/bounds/too_high/input.scss
@@ -144,3 +183,15 @@ Error: $amount: Expected 100.001 to be within 0 and 100.
144183
'
145184
input.scss 1:7 root stylesheet
146185

186+
<===> error/bounds/too_high/error-libsass
187+
Error: $amount: Expected 100.001 to be within 0 and 100.
188+
,
189+
1 | a {b: darken(red, 100.001)}
190+
| ^^^^^^^
191+
'
192+
input.scss 1:19 darken
193+
,
194+
1 | a {b: darken(red, 100.001)}
195+
| ^^^^^^^^^^^^^^^^^^^^
196+
'
197+
input.scss 1:7 root stylesheet

spec/core_functions/color/desaturate.hrx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ Error: $color: 1 is not a color.
108108
'
109109
input.scss 1:7 root stylesheet
110110

111+
<===> error/type/color/error-libsass
112+
Error: $color: 1 is not a color.
113+
,
114+
1 | a {b: desaturate(1, 2)}
115+
| ^
116+
'
117+
input.scss 1:18 desaturate
118+
,
119+
1 | a {b: desaturate(1, 2)}
120+
| ^^^^^^^^^^^^^^^^
121+
'
122+
input.scss 1:7 root stylesheet
123+
111124
<===>
112125
================================================================================
113126
<===> error/type/lightness/input.scss
@@ -121,6 +134,19 @@ Error: $amount: blue is not a number.
121134
'
122135
input.scss 1:7 root stylesheet
123136

137+
<===> error/type/lightness/error-libsass
138+
Error: $amount: blue is not a number.
139+
,
140+
1 | a {b: desaturate(plum, blue)}
141+
| ^^^^
142+
'
143+
input.scss 1:24 desaturate
144+
,
145+
1 | a {b: desaturate(plum, blue)}
146+
| ^^^^^^^^^^^^^^^^^^^^^^
147+
'
148+
input.scss 1:7 root stylesheet
149+
124150
<===>
125151
================================================================================
126152
<===> error/bounds/too_low/input.scss
@@ -134,6 +160,19 @@ Error: $amount: Expected -0.001 to be within 0 and 100.
134160
'
135161
input.scss 1:7 root stylesheet
136162

163+
<===> error/bounds/too_low/error-libsass
164+
Error: $amount: Expected -0.001 to be within 0 and 100.
165+
,
166+
1 | a {b: desaturate(plum, -0.001)}
167+
| ^^^^^^
168+
'
169+
input.scss 1:24 desaturate
170+
,
171+
1 | a {b: desaturate(plum, -0.001)}
172+
| ^^^^^^^^^^^^^^^^^^^^^^^^
173+
'
174+
input.scss 1:7 root stylesheet
175+
137176
<===>
138177
================================================================================
139178
<===> error/bounds/too_high/input.scss
@@ -147,3 +186,15 @@ Error: $amount: Expected 100.001 to be within 0 and 100.
147186
'
148187
input.scss 1:7 root stylesheet
149188

189+
<===> error/bounds/too_high/error-libsass
190+
Error: $amount: Expected 100.001 to be within 0 and 100.
191+
,
192+
1 | a {b: desaturate(plum, 100.001)}
193+
| ^^^^^^^
194+
'
195+
input.scss 1:24 desaturate
196+
,
197+
1 | a {b: desaturate(plum, 100.001)}
198+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
199+
'
200+
input.scss 1:7 root stylesheet

spec/core_functions/color/fade_in.hrx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ Error: $color: 1 is not a color.
9595
'
9696
input.scss 1:7 root stylesheet
9797

98+
<===> error/type/color/error-libsass
99+
Error: $color: 1 is not a color.
100+
,
101+
1 | a {b: fade-in(1, 0.1)}
102+
| ^
103+
'
104+
input.scss 1:15 fade-in
105+
,
106+
1 | a {b: fade-in(1, 0.1)}
107+
| ^^^^^^^^^^^^^^^
108+
'
109+
input.scss 1:7 root stylesheet
110+
98111
<===>
99112
================================================================================
100113
<===> error/type/alpha/input.scss
@@ -108,6 +121,19 @@ Error: $amount: blue is not a number.
108121
'
109122
input.scss 1:7 root stylesheet
110123

124+
<===> error/type/alpha/error-libsass
125+
Error: $amount: blue is not a number.
126+
,
127+
1 | a {b: fade-in(red, blue)}
128+
| ^^^^
129+
'
130+
input.scss 1:20 fade-in
131+
,
132+
1 | a {b: fade-in(red, blue)}
133+
| ^^^^^^^^^^^^^^^^^^
134+
'
135+
input.scss 1:7 root stylesheet
136+
111137
<===>
112138
================================================================================
113139
<===> error/bounds/too_low/input.scss
@@ -121,6 +147,19 @@ Error: $amount: Expected -0.001 to be within 0 and 1.
121147
'
122148
input.scss 1:7 root stylesheet
123149

150+
<===> error/bounds/too_low/error-libsass
151+
Error: $amount: Expected -0.001 to be within 0 and 1.
152+
,
153+
1 | a {b: fade-in(red, -0.001)}
154+
| ^^^^^^
155+
'
156+
input.scss 1:20 fade-in
157+
,
158+
1 | a {b: fade-in(red, -0.001)}
159+
| ^^^^^^^^^^^^^^^^^^^^
160+
'
161+
input.scss 1:7 root stylesheet
162+
124163
<===>
125164
================================================================================
126165
<===> error/bounds/too_high/input.scss
@@ -134,3 +173,15 @@ Error: $amount: Expected 1.001 to be within 0 and 1.
134173
'
135174
input.scss 1:7 root stylesheet
136175

176+
<===> error/bounds/too_high/error-libsass
177+
Error: $amount: Expected 1.001 to be within 0 and 1.
178+
,
179+
1 | a {b: fade-in(red, 1.001)}
180+
| ^^^^^
181+
'
182+
input.scss 1:20 fade-in
183+
,
184+
1 | a {b: fade-in(red, 1.001)}
185+
| ^^^^^^^^^^^^^^^^^^^
186+
'
187+
input.scss 1:7 root stylesheet

spec/core_functions/color/fade_out.hrx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ Error: $color: 1 is not a color.
9595
'
9696
input.scss 1:7 root stylesheet
9797

98+
<===> error/type/color/error-libsass
99+
Error: $color: 1 is not a color.
100+
,
101+
1 | a {b: fade-out(1, 0.1)}
102+
| ^
103+
'
104+
input.scss 1:16 fade-out
105+
,
106+
1 | a {b: fade-out(1, 0.1)}
107+
| ^^^^^^^^^^^^^^^^
108+
'
109+
input.scss 1:7 root stylesheet
110+
98111
<===>
99112
================================================================================
100113
<===> error/type/alpha/input.scss
@@ -108,6 +121,19 @@ Error: $amount: blue is not a number.
108121
'
109122
input.scss 1:7 root stylesheet
110123

124+
<===> error/type/alpha/error-libsass
125+
Error: $amount: blue is not a number.
126+
,
127+
1 | a {b: fade-out(red, blue)}
128+
| ^^^^
129+
'
130+
input.scss 1:21 fade-out
131+
,
132+
1 | a {b: fade-out(red, blue)}
133+
| ^^^^^^^^^^^^^^^^^^^
134+
'
135+
input.scss 1:7 root stylesheet
136+
111137
<===>
112138
================================================================================
113139
<===> error/bounds/too_low/input.scss
@@ -121,6 +147,19 @@ Error: $amount: Expected -0.001 to be within 0 and 1.
121147
'
122148
input.scss 1:7 root stylesheet
123149

150+
<===> error/bounds/too_low/error-libsass
151+
Error: $amount: Expected -0.001 to be within 0 and 1.
152+
,
153+
1 | a {b: fade-out(red, -0.001)}
154+
| ^^^^^^
155+
'
156+
input.scss 1:21 fade-out
157+
,
158+
1 | a {b: fade-out(red, -0.001)}
159+
| ^^^^^^^^^^^^^^^^^^^^^
160+
'
161+
input.scss 1:7 root stylesheet
162+
124163
<===>
125164
================================================================================
126165
<===> error/bounds/too_high/input.scss
@@ -134,3 +173,15 @@ Error: $amount: Expected 1.001 to be within 0 and 1.
134173
'
135174
input.scss 1:7 root stylesheet
136175

176+
<===> error/bounds/too_high/error-libsass
177+
Error: $amount: Expected 1.001 to be within 0 and 1.
178+
,
179+
1 | a {b: fade-out(red, 1.001)}
180+
| ^^^^^
181+
'
182+
input.scss 1:21 fade-out
183+
,
184+
1 | a {b: fade-out(red, 1.001)}
185+
| ^^^^^^^^^^^^^^^^^^^^
186+
'
187+
input.scss 1:7 root stylesheet

spec/core_functions/color/grayscale.hrx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,15 @@ Error: $color: c is not a color.
116116
'
117117
input.scss 1:7 root stylesheet
118118

119+
<===> error/type/error-libsass
120+
Error: $color: c is not a color.
121+
,
122+
1 | a {b: grayscale(c)}
123+
| ^
124+
'
125+
input.scss 1:17 grayscale
126+
,
127+
1 | a {b: grayscale(c)}
128+
| ^^^^^^^^^^^^
129+
'
130+
input.scss 1:7 root stylesheet

0 commit comments

Comments
 (0)