diff --git a/spec/directives/import/configuration.hrx b/spec/directives/import/configuration.hrx deleted file mode 100644 index c36ff9bda..000000000 --- a/spec/directives/import/configuration.hrx +++ /dev/null @@ -1,482 +0,0 @@ -<===> same_file/input.scss -$a: configured; -@import "midstream"; - -<===> same_file/_midstream.scss -@forward "upstream"; - -<===> same_file/_upstream.scss -$a: original !default; -b {c: $a} - -<===> same_file/output.css -b { - c: configured; -} - -<===> same_file/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet - -<===> -================================================================================ -<===> nested/input.scss -a { - $a: configured; - @import "midstream"; -} - -<===> nested/_midstream.scss -@forward "upstream"; - -<===> nested/_upstream.scss -$a: original !default; -b {c: $a} - -<===> nested/output.css -a b { - c: configured; -} - -<===> nested/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -3 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 3:11 root stylesheet - -<===> -================================================================================ -<===> prefixed_as/input.scss -$d-a: configured; -@import "midstream"; - -<===> prefixed_as/_midstream.scss -@forward "upstream" as d-*; - -<===> prefixed_as/_upstream.scss -$a: original !default; -b {c: $a} - -<===> prefixed_as/output.css -b { - c: configured; -} - -<===> prefixed_as/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet - -<===> -================================================================================ -<===> separate_file/direct/input.scss -@import "config"; -@import "midstream"; - -<===> separate_file/direct/_config.scss -$a: configured; - -<===> separate_file/direct/_midstream.scss -@forward "upstream"; - -<===> separate_file/direct/_upstream.scss -$a: original !default; -b {c: $a} - -<===> separate_file/direct/output.css -b { - c: configured; -} - -<===> separate_file/direct/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -1 | @import "config"; - | ^^^^^^^^ - ' - input.scss 1:9 root stylesheet - -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet - -<===> -================================================================================ -<===> separate_file/through_forward/input.scss -// Regression test for sass/dart-sass#2641 -@import "config_wrapper"; -@import "midstream"; - -<===> separate_file/through_forward/_config_wrapper.scss -@forward "config"; - -<===> separate_file/through_forward/_config.scss -$a: configured; - -<===> separate_file/through_forward/_midstream.scss -@forward "upstream"; - -<===> separate_file/through_forward/_upstream.scss -$a: original !default; -b {c: $a} - -<===> separate_file/through_forward/output.css -b { - c: configured; -} - -<===> separate_file/through_forward/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "config_wrapper"; - | ^^^^^^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet - -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -3 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 3:9 root stylesheet - -<===> -================================================================================ -<===> unrelated_variable/input.scss -$a: configured; -$d: other; -@import "midstream"; - -<===> unrelated_variable/_midstream.scss -@forward "upstream"; - -<===> unrelated_variable/_upstream.scss -$a: original !default; -b {c: $a} - -<===> unrelated_variable/output.css -b { - c: configured; -} - -<===> unrelated_variable/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -3 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 3:9 root stylesheet - -<===> -================================================================================ -<===> midstream_definition/with_config/input.scss -$a: configured; -@import "midstream"; - -<===> midstream_definition/with_config/_midstream.scss -$a: midstream; -@forward "upstream"; - -<===> midstream_definition/with_config/_upstream.scss -$a: original !default; -b {c: $a} - -<===> midstream_definition/with_config/output.css -b { - c: configured; -} - -<===> midstream_definition/with_config/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet - -<===> -================================================================================ -<===> midstream_definition/no_config/input.scss -@import "midstream"; - -<===> midstream_definition/no_config/_midstream.scss -$a: midstream; -@forward "upstream"; - -<===> midstream_definition/no_config/_upstream.scss -$a: original !default; -b {c: $a} - -<===> midstream_definition/no_config/output.css -b { - c: original; -} - -<===> midstream_definition/no_config/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -1 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 1:9 root stylesheet - -<===> -================================================================================ -<===> import_twice/no_change/input.scss -$a: configured; -@import "other"; -@import "other"; - -<===> import_twice/no_change/_other.scss -$a: original !default; -b {c: $a} - -<===> import_twice/no_change/_other.import.scss -@forward "other"; - -<===> import_twice/no_change/output.css -b { - c: configured; -} - -b { - c: configured; -} - -<===> import_twice/no_change/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "other"; - | ^^^^^^^ - ' - input.scss 2:9 root stylesheet - -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -3 | @import "other"; - | ^^^^^^^ - ' - input.scss 3:9 root stylesheet - -<===> -================================================================================ -<===> import_twice/with_change/input.scss -$a: configured; -@import "other"; -$a: changed; // This should be ignored -@import "other"; - -<===> import_twice/with_change/_other.scss -$a: original !default; -b {c: $a} - -<===> import_twice/with_change/_other.import.scss -@forward "other"; - -<===> import_twice/with_change/output.css -b { - c: configured; -} - -b { - c: configured; -} - -<===> import_twice/with_change/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "other"; - | ^^^^^^^ - ' - input.scss 2:9 root stylesheet - -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -4 | @import "other"; - | ^^^^^^^ - ' - input.scss 4:9 root stylesheet - -<===> -================================================================================ -<===> import_twice/still_changes_in_same_file/input.scss -@import "other"; -$a: changed; -@import "other"; - -d { - e: $a; -} - -<===> import_twice/still_changes_in_same_file/_other.scss -$a: original !default; -b {c: $a} - -<===> import_twice/still_changes_in_same_file/_other.import.scss -@forward "other"; - -<===> import_twice/still_changes_in_same_file/output.css -b { - c: original; -} - -b { - c: original; -} - -d { - e: changed; -} - -<===> import_twice/still_changes_in_same_file/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -1 | @import "other"; - | ^^^^^^^ - ' - input.scss 1:9 root stylesheet - -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -3 | @import "other"; - | ^^^^^^^ - ' - input.scss 3:9 root stylesheet - -<===> -================================================================================ -<===> indirect/through_import/input.scss -$a: configured; -@import "midstream"; - -<===> indirect/through_import/_midstream.scss -@import "upstream"; - -<===> indirect/through_import/_upstream.scss -$a: original !default; -b {c: $a} - -<===> indirect/through_import/_upstream.import.scss -@forward "upstream"; - -<===> indirect/through_import/output.css -b { - c: configured; -} - -<===> indirect/through_import/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet - -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -1 | @import "upstream"; - | ^^^^^^^^^^ - ' - _midstream.scss 1:9 @import - input.scss 2:9 root stylesheet - -<===> -================================================================================ -<===> indirect/through_forward/input.scss -$a: configured; -@import "midstream"; - -<===> indirect/through_forward/_midstream.scss -@forward "upstream"; - -<===> indirect/through_forward/_midstream.import.scss -@forward "midstream"; - -<===> indirect/through_forward/_upstream.scss -$a: original !default; -b {c: $a} - -<===> indirect/through_forward/_upstream.import.scss -@forward "upstream"; - -<===> indirect/through_forward/output.css -b { - c: configured; -} - -<===> indirect/through_forward/warning -DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. - -More info and automated migrator: https://sass-lang.com/d/import - - , -2 | @import "midstream"; - | ^^^^^^^^^^^ - ' - input.scss 2:9 root stylesheet diff --git a/spec/directives/import/configuration/import_twice.hrx b/spec/directives/import/configuration/import_twice.hrx new file mode 100644 index 000000000..931238298 --- /dev/null +++ b/spec/directives/import/configuration/import_twice.hrx @@ -0,0 +1,138 @@ +<===> no_change/input.scss +$a: configured; +@import "other"; +@import "other"; + +<===> no_change/_other.scss +$a: original !default; +b {c: $a} + +<===> no_change/_other.import.scss +@forward "other"; + +<===> no_change/output.css +b { + c: configured; +} + +b { + c: configured; +} + +<===> no_change/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "other"; + | ^^^^^^^ + ' + input.scss 2:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "other"; + | ^^^^^^^ + ' + input.scss 3:9 root stylesheet + +<===> +================================================================================ +<===> with_change/input.scss +$a: configured; +@import "other"; +$a: changed; // This should be ignored +@import "other"; + +<===> with_change/_other.scss +$a: original !default; +b {c: $a} + +<===> with_change/_other.import.scss +@forward "other"; + +<===> with_change/output.css +b { + c: configured; +} + +b { + c: configured; +} + +<===> with_change/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "other"; + | ^^^^^^^ + ' + input.scss 2:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | @import "other"; + | ^^^^^^^ + ' + input.scss 4:9 root stylesheet + +<===> +================================================================================ +<===> still_changes_in_same_file/input.scss +@import "other"; +$a: changed; +@import "other"; + +d { + e: $a; +} + +<===> still_changes_in_same_file/_other.scss +$a: original !default; +b {c: $a} + +<===> still_changes_in_same_file/_other.import.scss +@forward "other"; + +<===> still_changes_in_same_file/output.css +b { + c: original; +} + +b { + c: original; +} + +d { + e: changed; +} + +<===> still_changes_in_same_file/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | @import "other"; + | ^^^^^^^ + ' + input.scss 1:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "other"; + | ^^^^^^^ + ' + input.scss 3:9 root stylesheet diff --git a/spec/directives/import/configuration/indirect.hrx b/spec/directives/import/configuration/indirect.hrx new file mode 100644 index 000000000..0daa586c3 --- /dev/null +++ b/spec/directives/import/configuration/indirect.hrx @@ -0,0 +1,75 @@ +<===> through_import/input.scss +$a: configured; +@import "midstream"; + +<===> through_import/_midstream.scss +@import "upstream"; + +<===> through_import/_upstream.scss +$a: original !default; +b {c: $a} + +<===> through_import/_upstream.import.scss +@forward "upstream"; + +<===> through_import/output.css +b { + c: configured; +} + +<===> through_import/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | @import "upstream"; + | ^^^^^^^^^^ + ' + _midstream.scss 1:9 @import + input.scss 2:9 root stylesheet + +<===> +================================================================================ +<===> through_forward/input.scss +$a: configured; +@import "midstream"; + +<===> through_forward/_midstream.scss +@forward "upstream"; + +<===> through_forward/_midstream.import.scss +@forward "midstream"; + +<===> through_forward/_upstream.scss +$a: original !default; +b {c: $a} + +<===> through_forward/_upstream.import.scss +@forward "upstream"; + +<===> through_forward/output.css +b { + c: configured; +} + +<===> through_forward/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet diff --git a/spec/directives/import/configuration/midstream_definition.hrx b/spec/directives/import/configuration/midstream_definition.hrx new file mode 100644 index 000000000..682909df9 --- /dev/null +++ b/spec/directives/import/configuration/midstream_definition.hrx @@ -0,0 +1,56 @@ +<===> with_config/input.scss +$a: configured; +@import "midstream"; + +<===> with_config/_midstream.scss +$a: midstream; +@forward "upstream"; + +<===> with_config/_upstream.scss +$a: original !default; +b {c: $a} + +<===> with_config/output.css +b { + c: configured; +} + +<===> with_config/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet + +<===> +================================================================================ +<===> no_config/input.scss +@import "midstream"; + +<===> no_config/_midstream.scss +$a: midstream; +@forward "upstream"; + +<===> no_config/_upstream.scss +$a: original !default; +b {c: $a} + +<===> no_config/output.css +b { + c: original; +} + +<===> no_config/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 1:9 root stylesheet diff --git a/spec/directives/import/configuration/nested.hrx b/spec/directives/import/configuration/nested.hrx new file mode 100644 index 000000000..2760db5df --- /dev/null +++ b/spec/directives/import/configuration/nested.hrx @@ -0,0 +1,28 @@ +<===> input.scss +a { + $a: configured; + @import "midstream"; +} + +<===> _midstream.scss +@forward "upstream"; + +<===> _upstream.scss +$a: original !default; +b {c: $a} + +<===> output.css +a b { + c: configured; +} + +<===> warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 3:11 root stylesheet diff --git a/spec/directives/import/configuration/prefixed_as.hrx b/spec/directives/import/configuration/prefixed_as.hrx new file mode 100644 index 000000000..5b044067e --- /dev/null +++ b/spec/directives/import/configuration/prefixed_as.hrx @@ -0,0 +1,26 @@ +<===> input.scss +$d-a: configured; +@import "midstream"; + +<===> _midstream.scss +@forward "upstream" as d-*; + +<===> _upstream.scss +$a: original !default; +b {c: $a} + +<===> output.css +b { + c: configured; +} + +<===> warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet diff --git a/spec/directives/import/configuration/same_file.hrx b/spec/directives/import/configuration/same_file.hrx new file mode 100644 index 000000000..917693a7d --- /dev/null +++ b/spec/directives/import/configuration/same_file.hrx @@ -0,0 +1,26 @@ +<===> input.scss +$a: configured; +@import "midstream"; + +<===> _midstream.scss +@forward "upstream"; + +<===> _upstream.scss +$a: original !default; +b {c: $a} + +<===> output.css +b { + c: configured; +} + +<===> warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet diff --git a/spec/directives/import/configuration/separate_file.hrx b/spec/directives/import/configuration/separate_file.hrx new file mode 100644 index 000000000..2df79d4c2 --- /dev/null +++ b/spec/directives/import/configuration/separate_file.hrx @@ -0,0 +1,278 @@ +<===> direct/input.scss +@import "config"; +@import "midstream"; + +<===> direct/_config.scss +$a: configured; + +<===> direct/_midstream.scss +@forward "upstream"; + +<===> direct/_upstream.scss +$a: original !default; +b {c: $a} + +<===> direct/output.css +b { + c: configured; +} + +<===> direct/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | @import "config"; + | ^^^^^^^^ + ' + input.scss 1:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet + +<===> +================================================================================ +<===> through_forward/input.scss +// Regression test for sass/dart-sass#2641 +@import "config_wrapper"; +@import "midstream"; + +<===> through_forward/_config_wrapper.scss +@forward "config"; + +<===> through_forward/_config.scss +$a: configured; + +<===> through_forward/_midstream.scss +@forward "upstream"; + +<===> through_forward/_upstream.scss +$a: original !default; +b {c: $a} + +<===> through_forward/output.css +b { + c: configured; +} + +<===> through_forward/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | @import "config_wrapper"; + | ^^^^^^^^^^^^^^^^ + ' + input.scss 2:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 3:9 root stylesheet + +<===> +================================================================================ +<===> nested/through_forward/input.scss +// Regression test for sass/dart-sass#2641 +a { + @import "config_wrapper"; + @import "midstream"; +} + +<===> nested/through_forward/_config_wrapper.scss +@forward "config"; + +<===> nested/through_forward/_config.scss +$a: configured; + +<===> nested/through_forward/_midstream.scss +@forward "upstream"; + +<===> nested/through_forward/_upstream.scss +$a: original !default; +b {c: $a} + +<===> nested/through_forward/output.css +a b { + c: configured; +} + +<===> nested/through_forward/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "config_wrapper"; + | ^^^^^^^^^^^^^^^^ + ' + input.scss 3:11 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 4:11 root stylesheet + +<===> +================================================================================ +<===> shadowing/through_forward/input.scss +// Regression test for sass/dart-sass#2641 +$a: shadowed; +@import "config_wrapper"; +@import "midstream"; + +<===> shadowing/through_forward/_config_wrapper.scss +@forward "config"; + +<===> shadowing/through_forward/_config.scss +$a: configured; + +<===> shadowing/through_forward/_midstream.scss +@forward "upstream"; + +<===> shadowing/through_forward/_upstream.scss +$a: original !default; +b {c: $a} + +<===> shadowing/through_forward/output.css +b { + c: configured; +} + +<===> shadowing/through_forward/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "config_wrapper"; + | ^^^^^^^^^^^^^^^^ + ' + input.scss 3:9 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 4:9 root stylesheet + +<===> +================================================================================ +<===> shadowing/nested/global/through_forward/input.scss +// Regression test for sass/dart-sass#2641 +$a: shadowed; +a { + @import "config_wrapper"; + @import "midstream"; +} + +<===> shadowing/nested/global/through_forward/_config_wrapper.scss +@forward "config"; + +<===> shadowing/nested/global/through_forward/_config.scss +$a: configured; + +<===> shadowing/nested/global/through_forward/_midstream.scss +@forward "upstream"; + +<===> shadowing/nested/global/through_forward/_upstream.scss +$a: original !default; +b {c: $a} + +<===> shadowing/nested/global/through_forward/output.css +a b { + c: configured; +} + +<===> shadowing/nested/global/through_forward/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | @import "config_wrapper"; + | ^^^^^^^^^^^^^^^^ + ' + input.scss 4:11 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +5 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 5:11 root stylesheet + +<===> +================================================================================ +<===> shadowing/nested/local/through_forward/input.scss +// Regression test for sass/dart-sass#2641 +a { + $a: shadowed; + @import "config_wrapper"; + @import "midstream"; +} + +<===> shadowing/nested/local/through_forward/_config_wrapper.scss +@forward "config"; + +<===> shadowing/nested/local/through_forward/_config.scss +$a: configured; + +<===> shadowing/nested/local/through_forward/_midstream.scss +@forward "upstream"; + +<===> shadowing/nested/local/through_forward/_upstream.scss +$a: original !default; +b {c: $a} + +<===> shadowing/nested/local/through_forward/output.css +a b { + c: configured; +} + +<===> shadowing/nested/local/through_forward/warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | @import "config_wrapper"; + | ^^^^^^^^^^^^^^^^ + ' + input.scss 4:11 root stylesheet + +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +5 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 5:11 root stylesheet diff --git a/spec/directives/import/configuration/unrelated_variable.hrx b/spec/directives/import/configuration/unrelated_variable.hrx new file mode 100644 index 000000000..b6813bfa8 --- /dev/null +++ b/spec/directives/import/configuration/unrelated_variable.hrx @@ -0,0 +1,27 @@ +<===> input.scss +$a: configured; +$d: other; +@import "midstream"; + +<===> _midstream.scss +@forward "upstream"; + +<===> _upstream.scss +$a: original !default; +b {c: $a} + +<===> output.css +b { + c: configured; +} + +<===> warning +DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | @import "midstream"; + | ^^^^^^^^^^^ + ' + input.scss 3:9 root stylesheet