Skip to content

Commit cd345f2

Browse files
authored
Add a regression test for sass/dart-sass#854 (#1486)
1 parent b2c21e1 commit cd345f2

File tree

1 file changed

+54
-3
lines changed

1 file changed

+54
-3
lines changed

spec/directives/use/with.hrx

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,18 +330,36 @@ a {
330330

331331
<===>
332332
================================================================================
333-
<===> core_module/indirect/input.scss
333+
<===> core_module/indirect/use/input.scss
334334
// Regression test for sass/dart-sass#838.
335335
@use "other" with ($c: e);
336336

337337
a {b: other.$c}
338338

339-
<===> core_module/indirect/_other.scss
339+
<===> core_module/indirect/use/_other.scss
340340
@use "sass:color";
341341

342342
$c: d !default;
343343

344-
<===> core_module/indirect/output.css
344+
<===> core_module/indirect/use/output.css
345+
a {
346+
b: e;
347+
}
348+
349+
<===>
350+
================================================================================
351+
<===> core_module/indirect/forward/input.scss
352+
// Regression test for sass/dart-sass#838.
353+
@use "other" with ($c: e);
354+
355+
a {b: other.$c}
356+
357+
<===> core_module/indirect/forward/_other.scss
358+
@forward "sass:color";
359+
360+
$c: d !default;
361+
362+
<===> core_module/indirect/forward/output.css
345363
a {
346364
b: e;
347365
}
@@ -387,3 +405,36 @@ $a: original !default;
387405
b {
388406
c: configured;
389407
}
408+
409+
<===>
410+
================================================================================
411+
<===> multi_load/transitive/input.scss
412+
// Regression test for sass/dart-sass#854.
413+
@use "midstream1" with ($a: overridden 1);
414+
@use "midstream2" with ($a: overridden 2);
415+
416+
b {
417+
midstream1: midstream1.$a;
418+
midstream2: midstream2.$a;
419+
}
420+
421+
<===> multi_load/transitive/_midstream1.scss
422+
@use "upstream";
423+
$a: default 1 !default;
424+
425+
<===> multi_load/transitive/_midstream2.scss
426+
@use "upstream";
427+
$a: default 2 !default;
428+
429+
<===> multi_load/transitive/_upstream.scss
430+
c {d: e}
431+
432+
<===> multi_load/transitive/output.css
433+
c {
434+
d: e;
435+
}
436+
437+
b {
438+
midstream1: overridden 1;
439+
midstream2: overridden 2;
440+
}

0 commit comments

Comments
 (0)