Skip to content

Commit ae76e7e

Browse files
authored
Update specs to support empty custom properties (#2058)
1 parent 6e1ca3b commit ae76e7e

File tree

2 files changed

+21
-32
lines changed

2 files changed

+21
-32
lines changed

spec/css/custom_properties/empty.hrx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<===> literal/input.scss
2+
.empty {
3+
--property:;
4+
}
5+
6+
<===> literal/output.css
7+
.empty {
8+
--property:;
9+
}
10+
11+
<===>
12+
================================================================================
13+
<===> interpolation/input.scss
14+
.empty {
15+
--property:#{""};
16+
}
17+
18+
<===> interpolation/output.css
19+
.empty {
20+
--property:;
21+
}

spec/css/custom_properties/error.hrx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
<===> empty/input.scss
2-
// CSS requires at least one token in a custom property.
3-
.empty {
4-
--property:;
5-
}
6-
7-
<===> empty/error
8-
Error: Expected token.
9-
,
10-
3 | --property:;
11-
| ^
12-
'
13-
input.scss 3:14 root stylesheet
14-
15-
<===>
16-
================================================================================
17-
<===> empty_interpolation/input.scss
18-
// CSS requires at least one token in a custom property.
19-
.empty {
20-
--property:#{""};
21-
}
22-
23-
<===> empty_interpolation/error
24-
Error: Custom property values may not be empty.
25-
,
26-
3 | --property:#{""};
27-
| ^^^^^
28-
'
29-
input.scss 3:14 root stylesheet
30-
31-
<===>
32-
================================================================================
331
<===> nested/input.sass
342
.no-nesting
353
--foo: bar

0 commit comments

Comments
 (0)