Skip to content

Commit dc0ac49

Browse files
Add tests for keeping interpolation in CSS custom properties declaration. (#252)
1 parent 387292f commit dc0ac49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/migrators/calc_interpolation/calc_remove_interpolation.hrx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ $d: 5;
1818
// Nested and more interpolations
1919
.a { .b: calc(#{$b} + max(#{$c, 2})); }
2020

21+
// CSS Custom properties keep interpolation
22+
.a { --test: calc(#{$b} + 1);}
23+
2124
<==> output/entrypoint.scss
2225
$b: 10;
2326
$c: 1;
@@ -37,3 +40,6 @@ $d: 5;
3740

3841
// Nested and more interpolations
3942
.a { .b: calc($b + max($c, 2)); }
43+
44+
// CSS Custom properties keep interpolation
45+
.a { --test: calc(#{$b} + 1);}

0 commit comments

Comments
 (0)