diff --git a/js-api-spec/deprecations.test.ts b/js-api-spec/deprecations.test.ts index d7909e3b68..5335da32ed 100644 --- a/js-api-spec/deprecations.test.ts +++ b/js-api-spec/deprecations.test.ts @@ -134,8 +134,8 @@ describe('an error', () => { }); }); -// TODO(jathak): Disable these tests when there aren't any future deprecations. -describe('for a future deprecation,', () => { +// Excluding these tests since there aren't any future deprecations currently. +xdescribe('for a future deprecation,', () => { let importer: Importer; beforeEach(() => { importer = { diff --git a/js-api-spec/legacy/render.node.test.ts b/js-api-spec/legacy/render.node.test.ts index 461b980259..8ce47990bf 100644 --- a/js-api-spec/legacy/render.node.test.ts +++ b/js-api-spec/legacy/render.node.test.ts @@ -555,7 +555,8 @@ describe('options', () => { }); }); - describe('futureDeprecations', () => { + // Disabled since there aren't any current future deprecations + xdescribe('futureDeprecations', () => { it('opts into future deprecation early', () => { sandbox(dir => { dir.write({ diff --git a/spec/core_functions/color/adjust/global.hrx b/spec/core_functions/color/adjust/global.hrx index bf63b68f84..25286108b0 100644 --- a/spec/core_functions/color/adjust/global.hrx +++ b/spec/core_functions/color/adjust/global.hrx @@ -6,6 +6,18 @@ a { b: #cd0000; } +<===> legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-color(red, $red: -50)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> non_legacy/input.scss @@ -15,3 +27,15 @@ a {b: change-color(pink, $chroma: 0.01, $space: oklch)} a { b: rgb(217.7587741846, 208.8497862891, 210.1600712342); } + +<===> non_legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.change instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: change-color(pink, $chroma: 0.01, $space: oklch)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue.hrx b/spec/core_functions/color/adjust_hue.hrx deleted file mode 100644 index a97d14f1f2..0000000000 --- a/spec/core_functions/color/adjust_hue.hrx +++ /dev/null @@ -1,358 +0,0 @@ -<===> max/input.scss -a {b: adjust-hue(red, 359)} - -<===> max/output.css -a { - b: rgb(255, 0, 4.25); -} - -<===> max/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 359deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 359)} - | ^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> above_max/input.scss -a {b: adjust-hue(red, 540)} - -<===> above_max/output.css -a { - b: aqua; -} - -<===> above_max/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 540deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 540)} - | ^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> min/input.scss -a {b: adjust-hue(blue, 0)} - -<===> min/output.css -a { - b: blue; -} - -<===> min/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 0deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(blue, 0)} - | ^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> negative/input.scss -a {b: adjust-hue(red, -180)} - -<===> negative/output.css -a { - b: aqua; -} - -<===> negative/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: -180deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, -180)} - | ^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> middle/input.scss -a {b: adjust-hue(red, 123)} - -<===> middle/output.css -a { - b: rgb(0, 255, 12.75); -} - -<===> middle/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 123deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 123)} - | ^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> fraction/input.scss -a {b: adjust-hue(red, 0.5)} - -<===> fraction/output.css -a { - b: rgb(255, 2.125, 0); -} - -<===> fraction/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 0.5deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 0.5)} - | ^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> alpha/input.scss -a {b: adjust-hue(rgba(red, 0.1), 359)} - -<===> alpha/output.css -a { - b: rgba(255, 0, 4.25, 0.1); -} - -<===> alpha/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 359deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(rgba(red, 0.1), 359)} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> units/deg/input.scss -a {b: adjust-hue(red, 60deg)} - -<===> units/deg/output.css -a { - b: yellow; -} - -<===> units/deg/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 60deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 60deg)} - | ^^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> units/unitless/input.scss -a {b: adjust-hue(red, 60)} - -<===> units/unitless/output.css -a { - b: yellow; -} - -<===> units/unitless/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 60deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 60)} - | ^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> units/unknown/input.scss -a {b: adjust-hue(red, 60in)} - -<===> units/unknown/output.css -a { - b: yellow; -} - -<===> units/unknown/warning -DEPRECATION WARNING: $degrees: Passing a unit other than deg (60in) is deprecated. - -To preserve current behavior: calc($degrees / 1in) - -See https://sass-lang.com/d/function-units - - , -1 | a {b: adjust-hue(red, 60in)} - | ^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 60deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 60in)} - | ^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> units/angle/input.scss -a {b: adjust-hue(red, 60rad)} - -<===> units/angle/output.css -a { - b: rgb(0, 179.576224164, 255); -} - -<===> units/angle/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 3437.7467707849deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue(red, 60rad)} - | ^^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> named/input.scss -a {b: adjust-hue($color: red, $degrees: 123)} - -<===> named/output.css -a { - b: rgb(0, 255, 12.75); -} - -<===> named/warning -DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: - -color.adjust($color, $hue: 123deg) - -More info: https://sass-lang.com/d/color-functions - - , -1 | a {b: adjust-hue($color: red, $degrees: 123)} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> error/too_few_args/input.scss -a {b: adjust-hue(red)} - -<===> error/too_few_args/error -Error: Missing argument $degrees. - ,--> input.scss -1 | a {b: adjust-hue(red)} - | ^^^^^^^^^^^^^^^ invocation - ' - ,--> sass:color -1 | @function adjust-hue($color, $degrees) { - | ============================ declaration - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> error/too_many_args/input.scss -a {b: adjust-hue(red, 1, 2)} - -<===> error/too_many_args/error -Error: Only 2 arguments allowed, but 3 were passed. - ,--> input.scss -1 | a {b: adjust-hue(red, 1, 2)} - | ^^^^^^^^^^^^^^^^^^^^^ invocation - ' - ,--> sass:color -1 | @function adjust-hue($color, $degrees) { - | ============================ declaration - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> error/type/color/input.scss -a {b: adjust-hue(1, 2)} - -<===> error/type/color/error -Error: $color: 1 is not a color. - , -1 | a {b: adjust-hue(1, 2)} - | ^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> error/type/hue/input.scss -a {b: adjust-hue(red, blue)} - -<===> error/type/hue/error -Error: $degrees: blue is not a number. - , -1 | a {b: adjust-hue(red, blue)} - | ^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet - -<===> -================================================================================ -<===> error/non_legacy/input.scss -a {b: adjust-hue(lch(0% 0 0deg), 10deg)} - -<===> error/non_legacy/error -Error: adjust-hue() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. - , -1 | a {b: adjust-hue(lch(0% 0 0deg), 10deg)} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ' - input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/above_max.hrx b/spec/core_functions/color/adjust_hue/above_max.hrx new file mode 100644 index 0000000000..7dc73b065c --- /dev/null +++ b/spec/core_functions/color/adjust_hue/above_max.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(red, 540)} + +<===> output.css +a { + b: aqua; +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 540)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 540deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 540)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/alpha.hrx b/spec/core_functions/color/adjust_hue/alpha.hrx new file mode 100644 index 0000000000..83d7313425 --- /dev/null +++ b/spec/core_functions/color/adjust_hue/alpha.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(rgba(red, 0.1), 359)} + +<===> output.css +a { + b: rgba(255, 0, 4.25, 0.1); +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(rgba(red, 0.1), 359)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 359deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(rgba(red, 0.1), 359)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/error.hrx b/spec/core_functions/color/adjust_hue/error.hrx new file mode 100644 index 0000000000..c66e9fd106 --- /dev/null +++ b/spec/core_functions/color/adjust_hue/error.hrx @@ -0,0 +1,103 @@ +<===> too_few_args/input.scss +a {b: adjust-hue(red)} + +<===> too_few_args/error +Error: Missing argument $degrees. + ,--> input.scss +1 | a {b: adjust-hue(red)} + | ^^^^^^^^^^^^^^^ invocation + ' + ,--> sass:color +1 | @function adjust-hue($color, $degrees) { + | ============================ declaration + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> too_many_args/input.scss +a {b: adjust-hue(red, 1, 2)} + +<===> too_many_args/error +Error: Only 2 arguments allowed, but 3 were passed. + ,--> input.scss +1 | a {b: adjust-hue(red, 1, 2)} + | ^^^^^^^^^^^^^^^^^^^^^ invocation + ' + ,--> sass:color +1 | @function adjust-hue($color, $degrees) { + | ============================ declaration + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> type/color/input.scss +a {b: adjust-hue(1, 2)} + +<===> type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(1, 2)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +Error: $color: 1 is not a color. + , +1 | a {b: adjust-hue(1, 2)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> type/hue/input.scss +a {b: adjust-hue(red, blue)} + +<===> type/hue/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, blue)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +Error: $degrees: blue is not a number. + , +1 | a {b: adjust-hue(red, blue)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> non_legacy/input.scss +a {b: adjust-hue(lch(0% 0 0deg), 10deg)} + +<===> non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(lch(0% 0 0deg), 10deg)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +Error: adjust-hue() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. + , +1 | a {b: adjust-hue(lch(0% 0 0deg), 10deg)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/fraction.hrx b/spec/core_functions/color/adjust_hue/fraction.hrx new file mode 100644 index 0000000000..68008e03bf --- /dev/null +++ b/spec/core_functions/color/adjust_hue/fraction.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(red, 0.5)} + +<===> output.css +a { + b: rgb(255, 2.125, 0); +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 0.5)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 0.5deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 0.5)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/max.hrx b/spec/core_functions/color/adjust_hue/max.hrx new file mode 100644 index 0000000000..0224a4c9e5 --- /dev/null +++ b/spec/core_functions/color/adjust_hue/max.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(red, 359)} + +<===> output.css +a { + b: rgb(255, 0, 4.25); +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 359)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 359deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 359)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/middle.hrx b/spec/core_functions/color/adjust_hue/middle.hrx new file mode 100644 index 0000000000..63769aee32 --- /dev/null +++ b/spec/core_functions/color/adjust_hue/middle.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(red, 123)} + +<===> output.css +a { + b: rgb(0, 255, 12.75); +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 123)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 123deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 123)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/min.hrx b/spec/core_functions/color/adjust_hue/min.hrx new file mode 100644 index 0000000000..24e65e1bfd --- /dev/null +++ b/spec/core_functions/color/adjust_hue/min.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(blue, 0)} + +<===> output.css +a { + b: blue; +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(blue, 0)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 0deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(blue, 0)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/named.hrx b/spec/core_functions/color/adjust_hue/named.hrx new file mode 100644 index 0000000000..ed7a9f6a62 --- /dev/null +++ b/spec/core_functions/color/adjust_hue/named.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue($color: red, $degrees: 123)} + +<===> output.css +a { + b: rgb(0, 255, 12.75); +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue($color: red, $degrees: 123)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 123deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue($color: red, $degrees: 123)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/negative.hrx b/spec/core_functions/color/adjust_hue/negative.hrx new file mode 100644 index 0000000000..47abc516f2 --- /dev/null +++ b/spec/core_functions/color/adjust_hue/negative.hrx @@ -0,0 +1,31 @@ +<===> input.scss +a {b: adjust-hue(red, -180)} + +<===> output.css +a { + b: aqua; +} + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, -180)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: -180deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, -180)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/adjust_hue/units.hrx b/spec/core_functions/color/adjust_hue/units.hrx new file mode 100644 index 0000000000..a0bc77b14e --- /dev/null +++ b/spec/core_functions/color/adjust_hue/units.hrx @@ -0,0 +1,145 @@ +<===> deg/input.scss +a {b: adjust-hue(red, 60deg)} + +<===> deg/output.css +a { + b: yellow; +} + +<===> deg/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 60deg)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 60deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 60deg)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> unitless/input.scss +a {b: adjust-hue(red, 60)} + +<===> unitless/output.css +a { + b: yellow; +} + +<===> unitless/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 60)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 60deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 60)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> unknown/input.scss +a {b: adjust-hue(red, 60in)} + +<===> unknown/output.css +a { + b: yellow; +} + +<===> unknown/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 60in)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: $degrees: Passing a unit other than deg (60in) is deprecated. + +To preserve current behavior: calc($degrees / 1in) + +See https://sass-lang.com/d/function-units + + , +1 | a {b: adjust-hue(red, 60in)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 60deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 60in)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +<===> +================================================================================ +<===> angle/input.scss +a {b: adjust-hue(red, 60rad)} + +<===> angle/output.css +a { + b: rgb(0, 179.576224164, 255); +} + +<===> angle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: adjust-hue(red, 60rad)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + +DEPRECATION WARNING: adjust-hue() is deprecated. Suggestion: + +color.adjust($color, $hue: 3437.7467707849deg) + +More info: https://sass-lang.com/d/color-functions + + , +1 | a {b: adjust-hue(red, 60rad)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/change/global.hrx b/spec/core_functions/color/change/global.hrx index 115f445af3..71d9215cb3 100644 --- a/spec/core_functions/color/change/global.hrx +++ b/spec/core_functions/color/change/global.hrx @@ -6,6 +6,18 @@ a { b: #ff0032; } +<===> legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.change instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: change-color(red, $blue: 50)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> non_legacy/input.scss @@ -15,3 +27,15 @@ a {b: change-color(pink, $chroma: 0.06, $space: oklch)} a { b: rgb(247.5333922506, 195.8115232441, 204.5286945902); } + +<===> non_legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.change instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: change-color(pink, $chroma: 0.06, $space: oklch)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/complement.hrx b/spec/core_functions/color/complement.hrx index 4cbec64091..812bd4840e 100644 --- a/spec/core_functions/color/complement.hrx +++ b/spec/core_functions/color/complement.hrx @@ -65,7 +65,8 @@ a { <===> ================================================================================ <===> explicit_space/input.scss -a {b: complement(red, hwb)} +@use "sass:color"; +a {b: color.complement(red, hwb)} <===> explicit_space/output.css a { diff --git a/spec/core_functions/color/darken.hrx b/spec/core_functions/color/darken.hrx index 569cf90dbc..284cdd7261 100644 --- a/spec/core_functions/color/darken.hrx +++ b/spec/core_functions/color/darken.hrx @@ -7,6 +7,17 @@ a { } <===> max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, 100%)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -100%) @@ -31,6 +42,17 @@ a { } <===> max_remaining/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, 50%)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -100%) @@ -55,6 +77,17 @@ a { } <===> min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, 0%)} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestion: color.adjust($color, $lightness: 0%) @@ -78,6 +111,17 @@ a { } <===> middle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, 14%)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -28%) @@ -102,6 +146,17 @@ a { } <===> fraction/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, 0.5%)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -1%) @@ -126,6 +181,17 @@ a { } <===> alpha/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(rgba(red, 0.2), 100%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -100%) @@ -150,6 +216,17 @@ a { } <===> named/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken($color: red, $amount: 14%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -28%) @@ -203,6 +280,17 @@ Error: Only 2 arguments allowed, but 3 were passed. a {b: darken(1, 2)} <===> error/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(1, 2)} + | ^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: 1 is not a color. , 1 | a {b: darken(1, 2)} @@ -216,6 +304,17 @@ Error: $color: 1 is not a color. a {b: darken(red, blue)} <===> error/type/lightness/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, blue)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: blue is not a number. , 1 | a {b: darken(red, blue)} @@ -229,6 +328,17 @@ Error: $amount: blue is not a number. a {b: darken(red, -0.001)} <===> error/bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: darken(red, -0.001)} @@ -242,6 +352,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: darken(red, 100.001)} <===> error/bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, 100.001)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected 100.001 to be within 0 and 100. , 1 | a {b: darken(red, 100.001)} @@ -255,6 +376,17 @@ Error: $amount: Expected 100.001 to be within 0 and 100. a {b: darken(color(srgb 1 1 1), 10%)} <===> error/non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(color(srgb 1 1 1), 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: darken() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. , 1 | a {b: darken(color(srgb 1 1 1), 10%)} diff --git a/spec/core_functions/color/desaturate.hrx b/spec/core_functions/color/desaturate.hrx index 08a0fa1d18..3240053da8 100644 --- a/spec/core_functions/color/desaturate.hrx +++ b/spec/core_functions/color/desaturate.hrx @@ -7,6 +7,17 @@ a { } <===> max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, 100%)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestions: color.scale($color, $saturation: -100%) @@ -31,6 +42,17 @@ a { } <===> max_remaining/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, 48%)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestions: color.scale($color, $saturation: -100%) @@ -55,6 +77,17 @@ a { } <===> min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, 0%)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestion: color.adjust($color, $saturation: 0%) @@ -78,6 +111,17 @@ a { } <===> middle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, 14%)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestions: color.scale($color, $saturation: -29.606557377%) @@ -102,6 +146,17 @@ a { } <===> alpha/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(rgba(plum, 0.3), 100%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestions: color.scale($color, $saturation: -100%) @@ -126,6 +181,17 @@ a { } <===> named/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate($color: plum, $amount: 14%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestions: color.scale($color, $saturation: -29.606557377%) @@ -196,6 +262,17 @@ Error: Missing argument $amount. a {b: desaturate(1, 2)} <===> error/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(1, 2)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: 1 is not a color. , 1 | a {b: desaturate(1, 2)} @@ -209,6 +286,17 @@ Error: $color: 1 is not a color. a {b: desaturate(plum, blue)} <===> error/type/lightness/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, blue)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: blue is not a number. , 1 | a {b: desaturate(plum, blue)} @@ -222,6 +310,17 @@ Error: $amount: blue is not a number. a {b: desaturate(plum, -0.001)} <===> error/bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: desaturate(plum, -0.001)} @@ -235,6 +334,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: desaturate(plum, 100.001)} <===> error/bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(plum, 100.001)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected 100.001 to be within 0 and 100. , 1 | a {b: desaturate(plum, 100.001)} @@ -248,6 +358,17 @@ Error: $amount: Expected 100.001 to be within 0 and 100. a {b: desaturate(color(srgb 1 1 1), 10%)} <===> error/non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(color(srgb 1 1 1), 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: desaturate() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. , 1 | a {b: desaturate(color(srgb 1 1 1), 10%)} diff --git a/spec/core_functions/color/fade_in.hrx b/spec/core_functions/color/fade_in.hrx index b99cf5af47..a104f99432 100644 --- a/spec/core_functions/color/fade_in.hrx +++ b/spec/core_functions/color/fade_in.hrx @@ -7,6 +7,17 @@ a { } <===> max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(rgba(red, 0.5), 1)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-in() is deprecated. Suggestions: color.scale($color, $alpha: 100%) @@ -31,6 +42,17 @@ a { } <===> max_remaining/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(rgba(red, 0.5), 0.5)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-in() is deprecated. Suggestions: color.scale($color, $alpha: 100%) @@ -55,6 +77,17 @@ a { } <===> min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(rgba(red, 0.5), 0)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-in() is deprecated. Suggestion: color.adjust($color, $alpha: 0) @@ -78,6 +111,17 @@ a { } <===> middle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(rgba(red, 0.5), 0.14)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-in() is deprecated. Suggestions: color.scale($color, $alpha: 28%) @@ -102,6 +146,17 @@ a { } <===> named/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in($color: rgba(red, 0.5), $amount: 0.14)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-in() is deprecated. Suggestions: color.scale($color, $alpha: 28%) @@ -126,6 +181,17 @@ a { } <===> opacify/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: opacify($color: rgba(red, 0.5), $amount: 0.14)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: opacify() is deprecated. Suggestions: color.scale($color, $alpha: 28%) @@ -179,6 +245,17 @@ Error: Only 2 arguments allowed, but 3 were passed. a {b: fade-in(1, 0.1)} <===> error/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(1, 0.1)} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: 1 is not a color. , 1 | a {b: fade-in(1, 0.1)} @@ -192,6 +269,17 @@ Error: $color: 1 is not a color. a {b: fade-in(red, blue)} <===> error/type/alpha/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(red, blue)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: blue is not a number. , 1 | a {b: fade-in(red, blue)} @@ -205,6 +293,17 @@ Error: $amount: blue is not a number. a {b: fade-in(red, -0.001)} <===> error/bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 1. , 1 | a {b: fade-in(red, -0.001)} @@ -218,6 +317,17 @@ Error: $amount: Expected -0.001 to be within 0 and 1. a {b: fade-in(red, 1.001)} <===> error/bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(red, 1.001)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected 1.001 to be within 0 and 1. , 1 | a {b: fade-in(red, 1.001)} @@ -233,6 +343,17 @@ Error: $amount: Expected 1.001 to be within 0 and 1. a {b: fade-in(red, 50%)} <===> error/bounds/unit/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | a {b: fade-in(red, 50%)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 3:7 root stylesheet + Error: $amount: Expected 50% to be within 0 and 1. , 3 | a {b: fade-in(red, 50%)} @@ -246,6 +367,17 @@ Error: $amount: Expected 50% to be within 0 and 1. a {b: fade-in(color(srgb 1 1 1 / 0.1), 0.1)} <===> error/non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(color(srgb 1 1 1 / 0.1), 0.1)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: fade-in() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. , 1 | a {b: fade-in(color(srgb 1 1 1 / 0.1), 0.1)} diff --git a/spec/core_functions/color/fade_out.hrx b/spec/core_functions/color/fade_out.hrx index 146ee8d427..e72b27fe68 100644 --- a/spec/core_functions/color/fade_out.hrx +++ b/spec/core_functions/color/fade_out.hrx @@ -7,6 +7,17 @@ a { } <===> max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(rgba(red, 0.5), 1)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-out() is deprecated. Suggestions: color.scale($color, $alpha: -100%) @@ -31,6 +42,17 @@ a { } <===> max_remaining/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(rgba(red, 0.5), 0.5)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-out() is deprecated. Suggestions: color.scale($color, $alpha: -100%) @@ -55,6 +77,17 @@ a { } <===> min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(rgba(red, 0.5), 0)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-out() is deprecated. Suggestion: color.adjust($color, $alpha: 0) @@ -78,6 +111,17 @@ a { } <===> middle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(rgba(red, 0.5), 0.14)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-out() is deprecated. Suggestions: color.scale($color, $alpha: -28%) @@ -102,6 +146,17 @@ a { } <===> named/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out($color: rgba(red, 0.5), $amount: 0.14)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-out() is deprecated. Suggestions: color.scale($color, $alpha: -28%) @@ -126,6 +181,17 @@ a { } <===> transparentize/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: transparentize($color: rgba(red, 0.5), $amount: 0.14)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: transparentize() is deprecated. Suggestions: color.scale($color, $alpha: -28%) @@ -179,6 +245,17 @@ Error: Only 2 arguments allowed, but 3 were passed. a {b: fade-out(1, 0.1)} <===> error/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(1, 0.1)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: 1 is not a color. , 1 | a {b: fade-out(1, 0.1)} @@ -192,6 +269,17 @@ Error: $color: 1 is not a color. a {b: fade-out(red, blue)} <===> error/type/alpha/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(red, blue)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: blue is not a number. , 1 | a {b: fade-out(red, blue)} @@ -205,6 +293,17 @@ Error: $amount: blue is not a number. a {b: fade-out(red, -0.001)} <===> error/bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 1. , 1 | a {b: fade-out(red, -0.001)} @@ -218,6 +317,17 @@ Error: $amount: Expected -0.001 to be within 0 and 1. a {b: fade-out(red, 1.001)} <===> error/bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(red, 1.001)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected 1.001 to be within 0 and 1. , 1 | a {b: fade-out(red, 1.001)} @@ -233,6 +343,17 @@ Error: $amount: Expected 1.001 to be within 0 and 1. a {b: fade-out(red, 50%)} <===> error/bounds/unit/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | a {b: fade-out(red, 50%)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 3:7 root stylesheet + Error: $amount: Expected 50% to be within 0 and 1. , 3 | a {b: fade-out(red, 50%)} @@ -246,6 +367,17 @@ Error: $amount: Expected 50% to be within 0 and 1. a {b: fade-out(color(srgb 1 1 1), 0.1)} <===> error/non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(color(srgb 1 1 1), 0.1)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: fade-out() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. , 1 | a {b: fade-out(color(srgb 1 1 1), 0.1)} diff --git a/spec/core_functions/color/grayscale.hrx b/spec/core_functions/color/grayscale.hrx index 19928ed683..80bb19f2c4 100644 --- a/spec/core_functions/color/grayscale.hrx +++ b/spec/core_functions/color/grayscale.hrx @@ -136,6 +136,18 @@ a { b: grayscale(calc(1)); } +<===> global/with_unquoted_calc/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: grayscale(unquote('calc(1)'))} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:17 root stylesheet + <===> ================================================================================ <===> number/input.scss diff --git a/spec/core_functions/color/invert/error.hrx b/spec/core_functions/color/invert/error.hrx index 8c17ee6535..8b41fd726e 100644 --- a/spec/core_functions/color/invert/error.hrx +++ b/spec/core_functions/color/invert/error.hrx @@ -38,6 +38,17 @@ Error: Only 3 arguments allowed, but 4 were passed. a {b: invert(1, 50%)} <===> global/number_with_weight/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(1, 50%)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: Only one argument may be passed to the plain-CSS invert() function. , 1 | a {b: invert(1, 50%)} @@ -51,6 +62,17 @@ Error: Only one argument may be passed to the plain-CSS invert() function. a {b: invert(c)} <===> global/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(c)} + | ^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: c is not a color. , 1 | a {b: invert(c)} @@ -64,6 +86,17 @@ Error: $color: c is not a color. a {b: invert(rgb(none 10 20))} <===> missing/legacy/same/implicit/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(rgb(none 10 20))} + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $red: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: rgb(none 10 20)). , 1 | a {b: invert(rgb(none 10 20))} @@ -77,6 +110,17 @@ Error: $red: Because the CSS working group is still deciding on the best behavio a {b: invert(hsl(0 40% none), $space: hsl)} <===> missing/legacy/same/explicit/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(hsl(0 40% none), $space: hsl)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $lightness: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: hsl(0deg 40% none)). , 1 | a {b: invert(hsl(0 40% none), $space: hsl)} @@ -90,6 +134,17 @@ Error: $lightness: Because the CSS working group is still deciding on the best b a {b: invert(hwb(none 10% 20%), $space: hwb)} <===> missing/legacy/same/hwb_hue/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(hwb(none 10% 20%), $space: hwb)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $hue: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: hwb(none 10% 20%)). , 1 | a {b: invert(hwb(none 10% 20%), $space: hwb)} @@ -103,6 +158,17 @@ Error: $hue: Because the CSS working group is still deciding on the best behavio a {b: invert(rgb(10 none 20), $space: xyz)} <===> missing/legacy/analogous/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(rgb(10 none 20), $space: xyz)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $y: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: color(xyz 0.0025142545 none 0.0067080366)). , 1 | a {b: invert(rgb(10 none 20), $space: xyz)} @@ -116,6 +182,17 @@ Error: $y: Because the CSS working group is still deciding on the best behavior, a {b: invert(grey, $space: hsl)} <===> missing/legacy/powerless/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(grey, $space: hsl)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $hue: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: hsl(none 0% 50.1960784314%)). , 1 | a {b: invert(grey, $space: hsl)} @@ -129,6 +206,17 @@ Error: $hue: Because the CSS working group is still deciding on the best behavio a {b: invert(color(srgb none 0.1 0.2), $space: srgb)} <===> missing/modern/same/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(color(srgb none 0.1 0.2), $space: srgb)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $red: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: color(srgb none 0.1 0.2)). , 1 | a {b: invert(color(srgb none 0.1 0.2), $space: srgb)} @@ -142,6 +230,17 @@ Error: $red: Because the CSS working group is still deciding on the best behavio a {b: invert(color(rec2020 0.1 none 0.2), $space: xyz)} <===> missing/modern/analogous/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(color(rec2020 0.1 none 0.2), $space: xyz)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $y: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: color(xyz 0.0237000113 none 0.0589013339)). , 1 | a {b: invert(color(rec2020 0.1 none 0.2), $space: xyz)} @@ -155,6 +254,17 @@ Error: $y: Because the CSS working group is still deciding on the best behavior, a {b: invert(color(rec2020 0.4 0.4 0.4), $space: lch)} <===> missing/modern/powerless/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(color(rec2020 0.4 0.4 0.4), $space: lch)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $hue: Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: lch(48.649404846% 0 none)). , 1 | a {b: invert(color(rec2020 0.4 0.4 0.4), $space: lch)} diff --git a/spec/core_functions/color/invert/global.hrx b/spec/core_functions/color/invert/global.hrx index e991643d4e..46f7ecf46f 100644 --- a/spec/core_functions/color/invert/global.hrx +++ b/spec/core_functions/color/invert/global.hrx @@ -6,6 +6,18 @@ a { b: aqua; } +<===> legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(red)} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> modern/input.scss @@ -16,6 +28,18 @@ a { b: color(srgb 1 0.6 0); } +<===> modern/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(color(srgb 0 0.4 1), $space: srgb)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> number/input.scss @@ -26,6 +50,18 @@ a { b: invert(10%); } +<===> number/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(10%)} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_css_var/input.scss @@ -36,6 +72,18 @@ a { b: invert(var(--c)); } +<===> with_css_var/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(var(--c))} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_calc/input.scss @@ -46,6 +94,18 @@ a { b: invert(3); } +<===> with_calc/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(calc(1 + 2))} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_unquoted_calc/input.scss @@ -55,3 +115,26 @@ a {b: invert(unquote('calc(1)'))} a { b: invert(calc(1)); } + +<===> with_unquoted_calc/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(unquote('calc(1)'))} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:14 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(unquote('calc(1)'))} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/color/lab/special_functions/alpha.hrx b/spec/core_functions/color/lab/special_functions/alpha.hrx index 3ba4fca260..b7fcf457e5 100644 --- a/spec/core_functions/color/lab/special_functions/alpha.hrx +++ b/spec/core_functions/color/lab/special_functions/alpha.hrx @@ -1,6 +1,7 @@ <===> calc/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("calc(1%)") 2 3 / 0.4)); +@include utils.inspect(lab(string.unquote("calc(1%)") 2 3 / 0.4)); <===> calc/string/arg_1/output.css a { @@ -11,8 +12,9 @@ a { <===> ================================================================================ <===> calc/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("calc(2)") 3 / 0.4)); +@include utils.inspect(lab(1% string.unquote("calc(2)") 3 / 0.4)); <===> calc/string/arg_2/output.css a { @@ -23,8 +25,9 @@ a { <===> ================================================================================ <===> calc/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("calc(3)") / 0.4)); +@include utils.inspect(lab(1% 2 string.unquote("calc(3)") / 0.4)); <===> calc/string/arg_3/output.css a { @@ -35,8 +38,9 @@ a { <===> ================================================================================ <===> calc/string/arg_4/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 3 / unquote("calc(0.4)"))); +@include utils.inspect(lab(1% 2 3 / string.unquote("calc(0.4)"))); <===> calc/string/arg_4/output.css a { @@ -203,8 +207,9 @@ a { <===> ================================================================================ <===> min/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("min(1%)") 2 3 / 0.4)); +@include utils.inspect(lab(string.unquote("min(1%)") 2 3 / 0.4)); <===> min/string/arg_1/output.css a { @@ -215,8 +220,9 @@ a { <===> ================================================================================ <===> min/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("min(2)") 3 / 0.4)); +@include utils.inspect(lab(1% string.unquote("min(2)") 3 / 0.4)); <===> min/string/arg_2/output.css a { @@ -227,8 +233,9 @@ a { <===> ================================================================================ <===> min/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("min(3)") / 0.4)); +@include utils.inspect(lab(1% 2 string.unquote("min(3)") / 0.4)); <===> min/string/arg_3/output.css a { @@ -239,8 +246,9 @@ a { <===> ================================================================================ <===> min/string/arg_4/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 3 / unquote("min(0.4)"))); +@include utils.inspect(lab(1% 2 3 / string.unquote("min(0.4)"))); <===> min/string/arg_4/output.css a { @@ -251,8 +259,9 @@ a { <===> ================================================================================ <===> max/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("max(1%)") 2 3 / 0.4)); +@include utils.inspect(lab(string.unquote("max(1%)") 2 3 / 0.4)); <===> max/string/arg_1/output.css a { @@ -263,8 +272,9 @@ a { <===> ================================================================================ <===> max/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("max(2)") 3 / 0.4)); +@include utils.inspect(lab(1% string.unquote("max(2)") 3 / 0.4)); <===> max/string/arg_2/output.css a { @@ -275,8 +285,9 @@ a { <===> ================================================================================ <===> max/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("max(3)") / 0.4)); +@include utils.inspect(lab(1% 2 string.unquote("max(3)") / 0.4)); <===> max/string/arg_3/output.css a { @@ -287,8 +298,9 @@ a { <===> ================================================================================ <===> max/string/arg_4/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 3 / unquote("max(0.4)"))); +@include utils.inspect(lab(1% 2 3 / string.unquote("max(0.4)"))); <===> max/string/arg_4/output.css a { @@ -299,8 +311,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("clamp(1%, 2, 3)") 2 3 / 0.4)); +@include utils.inspect(lab(string.unquote("clamp(1%, 2, 3)") 2 3 / 0.4)); <===> clamp/string/arg_1/output.css a { @@ -311,8 +324,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("clamp(2, 3, 4)") 3 / 0.4)); +@include utils.inspect(lab(1% string.unquote("clamp(2, 3, 4)") 3 / 0.4)); <===> clamp/string/arg_2/output.css a { @@ -323,8 +337,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("clamp(3, 4, 5)") / 0.4)); +@include utils.inspect(lab(1% 2 string.unquote("clamp(3, 4, 5)") / 0.4)); <===> clamp/string/arg_3/output.css a { @@ -335,8 +350,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_4/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 3 / unquote("clamp(0.4, 0.5, 0.6)"))); +@include utils.inspect(lab(1% 2 3 / string.unquote("clamp(0.4, 0.5, 0.6)"))); <===> clamp/string/arg_4/output.css a { diff --git a/spec/core_functions/color/lab/special_functions/no_alpha.hrx b/spec/core_functions/color/lab/special_functions/no_alpha.hrx index 8f461e6412..d44f33e3e2 100644 --- a/spec/core_functions/color/lab/special_functions/no_alpha.hrx +++ b/spec/core_functions/color/lab/special_functions/no_alpha.hrx @@ -1,6 +1,7 @@ <===> calc/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("calc(1%)") 2 3)); +@include utils.inspect(lab(string.unquote("calc(1%)") 2 3)); <===> calc/string/arg_1/output.css a { @@ -11,8 +12,9 @@ a { <===> ================================================================================ <===> calc/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("calc(2)") 3)); +@include utils.inspect(lab(1% string.unquote("calc(2)") 3)); <===> calc/string/arg_2/output.css a { @@ -23,8 +25,9 @@ a { <===> ================================================================================ <===> calc/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("calc(3)"))); +@include utils.inspect(lab(1% 2 string.unquote("calc(3)"))); <===> calc/string/arg_3/output.css a { @@ -143,8 +146,9 @@ a { <===> ================================================================================ <===> min/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("min(1%)") 2 3)); +@include utils.inspect(lab(string.unquote("min(1%)") 2 3)); <===> min/string/arg_1/output.css a { @@ -155,8 +159,9 @@ a { <===> ================================================================================ <===> min/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("min(2)") 3)); +@include utils.inspect(lab(1% string.unquote("min(2)") 3)); <===> min/string/arg_2/output.css a { @@ -167,8 +172,9 @@ a { <===> ================================================================================ <===> min/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("min(3)"))); +@include utils.inspect(lab(1% 2 string.unquote("min(3)"))); <===> min/string/arg_3/output.css a { @@ -179,8 +185,9 @@ a { <===> ================================================================================ <===> max/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("max(1%)") 2 3)); +@include utils.inspect(lab(string.unquote("max(1%)") 2 3)); <===> max/string/arg_1/output.css a { @@ -191,8 +198,9 @@ a { <===> ================================================================================ <===> max/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("max(2)") 3)); +@include utils.inspect(lab(1% string.unquote("max(2)") 3)); <===> max/string/arg_2/output.css a { @@ -203,8 +211,9 @@ a { <===> ================================================================================ <===> max/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("max(3)"))); +@include utils.inspect(lab(1% 2 string.unquote("max(3)"))); <===> max/string/arg_3/output.css a { @@ -215,8 +224,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_1/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(unquote("clamp(1%, 2, 3)") 2 3)); +@include utils.inspect(lab(string.unquote("clamp(1%, 2, 3)") 2 3)); <===> clamp/string/arg_1/output.css a { @@ -227,8 +237,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_2/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% unquote("clamp(2, 3, 4)") 3)); +@include utils.inspect(lab(1% string.unquote("clamp(2, 3, 4)") 3)); <===> clamp/string/arg_2/output.css a { @@ -239,8 +250,9 @@ a { <===> ================================================================================ <===> clamp/string/arg_3/input.scss +@use "sass:string"; @use 'core_functions/color/utils'; -@include utils.inspect(lab(1% 2 unquote("clamp(3, 4, 5)"))); +@include utils.inspect(lab(1% 2 string.unquote("clamp(3, 4, 5)"))); <===> clamp/string/arg_3/output.css a { diff --git a/spec/core_functions/color/lighten.hrx b/spec/core_functions/color/lighten.hrx index 39d882a390..c0e7edf74a 100644 --- a/spec/core_functions/color/lighten.hrx +++ b/spec/core_functions/color/lighten.hrx @@ -7,6 +7,17 @@ a { } <===> max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, 100%)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 100%) @@ -31,6 +42,17 @@ a { } <===> max_remaining/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, 50%)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 100%) @@ -55,6 +77,17 @@ a { } <===> min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, 0%)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestion: color.adjust($color, $lightness: 0%) @@ -78,6 +111,17 @@ a { } <===> middle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, 14%)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 28%) @@ -102,6 +146,17 @@ a { } <===> fraction/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, 0.5%)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 1%) @@ -126,6 +181,17 @@ a { } <===> alpha/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(rgba(red, 0.4), 100%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 100%) @@ -150,6 +216,17 @@ a { } <===> named/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten($color: red, $amount: 14%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 28%) @@ -203,6 +280,17 @@ Error: Only 2 arguments allowed, but 3 were passed. a {b: lighten(1, 2)} <===> error/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(1, 2)} + | ^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: 1 is not a color. , 1 | a {b: lighten(1, 2)} @@ -216,6 +304,17 @@ Error: $color: 1 is not a color. a {b: lighten(red, blue)} <===> error/type/lightness/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, blue)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: blue is not a number. , 1 | a {b: lighten(red, blue)} @@ -229,6 +328,17 @@ Error: $amount: blue is not a number. a {b: lighten(red, -0.001)} <===> error/bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: lighten(red, -0.001)} @@ -242,6 +352,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: lighten(red, 100.001)} <===> error/bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, 100.001)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected 100.001 to be within 0 and 100. , 1 | a {b: lighten(red, 100.001)} @@ -255,6 +376,17 @@ Error: $amount: Expected 100.001 to be within 0 and 100. a {b: lighten(color(srgb 0 0 0), 10%)} <===> error/non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(color(srgb 0 0 0), 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: lighten() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. , 1 | a {b: lighten(color(srgb 0 0 0), 10%)} diff --git a/spec/core_functions/color/mix/alpha.hrx b/spec/core_functions/color/mix/alpha.hrx index 0f63657175..378fd0154e 100644 --- a/spec/core_functions/color/mix/alpha.hrx +++ b/spec/core_functions/color/mix/alpha.hrx @@ -1,5 +1,6 @@ <===> even/input.scss -a {b: mix(rgba(#91e16f, 0.3), rgba(#0144bf, 0.3))} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.3), rgba(#0144bf, 0.3))} <===> even/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> first/input.scss -a {b: mix(#91e16f, transparent)} +@use "sass:color"; +a {b: color.mix(#91e16f, transparent)} <===> first/output.css a { @@ -19,7 +21,8 @@ a { <===> ================================================================================ <===> last/input.scss -a {b: mix(transparent, #0144bf)} +@use "sass:color"; +a {b: color.mix(transparent, #0144bf)} <===> last/output.css a { @@ -29,7 +32,8 @@ a { <===> ================================================================================ <===> firstwards/input.scss -a {b: mix(rgba(#91e16f, 0.8), rgba(#0144bf, 0.3))} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.8), rgba(#0144bf, 0.3))} <===> firstwards/output.css a { @@ -39,7 +43,8 @@ a { <===> ================================================================================ <===> lastwards/input.scss -a {b: mix(rgba(#91e16f, 0.4), rgba(#0144bf, 0.9))} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.4), rgba(#0144bf, 0.9))} <===> lastwards/output.css a { diff --git a/spec/core_functions/color/mix/both_weights.hrx b/spec/core_functions/color/mix/both_weights.hrx index bb90bd43c4..5b874fac7d 100644 --- a/spec/core_functions/color/mix/both_weights.hrx +++ b/spec/core_functions/color/mix/both_weights.hrx @@ -1,5 +1,6 @@ <===> transparent/first/input.scss -a {b: mix(transparent, #0144bf, 70%)} +@use "sass:color"; +a {b: color.mix(transparent, #0144bf, 70%)} <===> transparent/first/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> transparent/last/input.scss -a {b: mix(#91e16f, transparent, 70%)} +@use "sass:color"; +a {b: color.mix(#91e16f, transparent, 70%)} <===> transparent/last/output.css a { @@ -19,7 +21,8 @@ a { <===> ================================================================================ <===> weighted/first/input.scss -a {b: mix(rgba(#91e16f, 0.2), rgba(#0144bf, 0.7), 100%)} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.2), rgba(#0144bf, 0.7), 100%)} <===> weighted/first/output.css a { @@ -29,7 +32,8 @@ a { <===> ================================================================================ <===> weighted/last/input.scss -a {b: mix(rgba(#91e16f, 0.2), rgba(#0144bf, 0.7), 0%)} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.2), rgba(#0144bf, 0.7), 0%)} <===> weighted/last/output.css a { @@ -39,7 +43,8 @@ a { <===> ================================================================================ <===> mixed/firstwards/input.scss -a {b: mix(rgba(#91e16f, 0.8), rgba(#0144bf, 0.3), 63%)} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.8), rgba(#0144bf, 0.3), 63%)} <===> mixed/firstwards/output.css a { @@ -49,7 +54,8 @@ a { <===> ================================================================================ <===> mixed/lastwards/input.scss -a {b: mix(rgba(#91e16f, 0.2), rgba(#0144bf, 0.7), 42%)} +@use "sass:color"; +a {b: color.mix(rgba(#91e16f, 0.2), rgba(#0144bf, 0.7), 42%)} <===> mixed/lastwards/output.css a { @@ -59,10 +65,11 @@ a { <===> ================================================================================ <===> contradiction/input.scss +@use "sass:color"; // When we weight entirely towards a transparent color, the formula for // computing the combined alpha would divide by zero, so we just return // transparent as a special case. -a {b: mix(transparent, #0144bf, 100%)} +a {b: color.mix(transparent, #0144bf, 100%)} <===> contradiction/output.css a { diff --git a/spec/core_functions/color/mix/error.hrx b/spec/core_functions/color/mix/error.hrx index cf5b481d4f..d5579ba18c 100644 --- a/spec/core_functions/color/mix/error.hrx +++ b/spec/core_functions/color/mix/error.hrx @@ -36,6 +36,17 @@ Error: Missing argument $color2. a {b: mix(lch(20% -20 0), red)} <===> null_method/non_legacy/color1/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(lch(20% -20 0), red)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color1: To use color.mix() with non-legacy color lch(20% 0 0deg), you must provide a $method. , 1 | a {b: mix(lch(20% -20 0), red)} @@ -49,6 +60,17 @@ Error: $color1: To use color.mix() with non-legacy color lch(20% 0 0deg), you mu a {b: mix(red, lch(20% -20 0))} <===> null_method/non_legacy/color2/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, lch(20% -20 0))} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color2: To use color.mix() with non-legacy color lch(20% 0 0deg), you must provide a $method. , 1 | a {b: mix(red, lch(20% -20 0))} @@ -62,6 +84,17 @@ Error: $color2: To use color.mix() with non-legacy color lch(20% 0 0deg), you mu a {b: mix(red, blue, $method: brighter)} <===> color_interpolation_method/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: brighter)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Unknown color space "brighter". , 1 | a {b: mix(red, blue, $method: brighter)} @@ -75,6 +108,17 @@ Error: $method: Unknown color space "brighter". a {b: mix(red, blue, $method: hsl 1)} <===> interpolation/number/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: hsl 1)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: 1 is not a string. , 1 | a {b: mix(red, blue, $method: hsl 1)} @@ -101,6 +145,17 @@ Error: Positional arguments must come before keyword arguments. a {b: mix(red, blue, $method: hsl/longer/hue)} <===> interpolation_list/slash/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: hsl/longer/hue)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Unknown color space "hsl/longer/hue". , 1 | a {b: mix(red, blue, $method: hsl/longer/hue)} @@ -114,6 +169,17 @@ Error: $method: Unknown color space "hsl/longer/hue". a {b: mix(red, blue, $method: "hsl longer hue")} <===> interpolation_list/quoted/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: "hsl longer hue")} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Expected "hsl longer hue" to be an unquoted string. , 1 | a {b: mix(red, blue, $method: "hsl longer hue")} @@ -127,6 +193,17 @@ Error: $method: Expected "hsl longer hue" to be an unquoted string. a {b: mix(red, blue, $method: hsl longer shade)} <===> invalid_method/wrong_hue_keyword/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: hsl longer shade)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Expected unquoted string "hue" at the end of (hsl longer shade), was shade. , 1 | a {b: mix(red, blue, $method: hsl longer shade)} @@ -142,6 +219,17 @@ Error: $method: Expected unquoted string "hue" at the end of (hsl longer shade), a {b: mix(red, blue, $method: hsl specified hue)} <===> invalid_method/unsupported/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | a {b: mix(red, blue, $method: hsl specified hue)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 3:7 root stylesheet + Error: $method: Unknown hue interpolation method specified. , 3 | a {b: mix(red, blue, $method: hsl specified hue)} @@ -181,6 +269,17 @@ Error: Expected expression. a {b: mix(red, blue, $method: lch longerhue)} <===> unknown_interpolation/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: lch longerhue)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Unknown hue interpolation method longerhue. , 1 | a {b: mix(red, blue, $method: lch longerhue)} @@ -194,6 +293,17 @@ Error: $method: Unknown hue interpolation method longerhue. a {b: mix(red, blue, $method: srgb longer hue)} <===> rectangular_space_with_method/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: srgb longer hue)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Hue interpolation method "HueInterpolationMethod.longer hue" may not be set for rectangular color space srgb. , 1 | a {b: mix(red, blue, $method: srgb longer hue)} @@ -207,6 +317,17 @@ Error: $method: Hue interpolation method "HueInterpolationMethod.longer hue" may a {b: mix(red, blue, $method: lch decreasing)} <===> missing_hue_string/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: lch decreasing)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: Expected unquoted string "hue" after (lch decreasing). , 1 | a {b: mix(red, blue, $method: lch decreasing)} @@ -220,6 +341,17 @@ Error: $method: Expected unquoted string "hue" after (lch decreasing). a {b: mix(red, blue, $method: lch (decreasing hue))} <===> parentheses/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, $method: lch (decreasing hue))} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $method: (decreasing hue) is not a string. , 1 | a {b: mix(red, blue, $method: lch (decreasing hue))} @@ -233,6 +365,17 @@ Error: $method: (decreasing hue) is not a string. a {b: mix(1, blue)} <===> type/color1/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(1, blue)} + | ^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color1: 1 is not a color. , 1 | a {b: mix(1, blue)} @@ -246,6 +389,17 @@ Error: $color1: 1 is not a color. a {b: mix(red, 1)} <===> type/color2/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, 1)} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color2: 1 is not a color. , 1 | a {b: mix(red, 1)} @@ -259,6 +413,17 @@ Error: $color2: 1 is not a color. a {b: mix(red, blue, green)} <===> type/weight/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, green)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $weight: green is not a number. , 1 | a {b: mix(red, blue, green)} @@ -272,6 +437,17 @@ Error: $weight: green is not a number. a {b: mix(red, blue, -0.001%)} <===> bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, -0.001%)} + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $weight: Expected -0.001% to be within 0% and 100%. , 1 | a {b: mix(red, blue, -0.001%)} @@ -285,6 +461,17 @@ Error: $weight: Expected -0.001% to be within 0% and 100%. a {b: mix(red, blue, 100.001%)} <===> bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(red, blue, 100.001%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $weight: Expected 100.001% to be within 0% and 100%. , 1 | a {b: mix(red, blue, 100.001%)} diff --git a/spec/core_functions/color/mix/explicit_method.hrx b/spec/core_functions/color/mix/explicit_method.hrx index 693200875a..47c7880704 100644 --- a/spec/core_functions/color/mix/explicit_method.hrx +++ b/spec/core_functions/color/mix/explicit_method.hrx @@ -1,5 +1,6 @@ <===> srgb/input.scss -a {b: mix(red, green, $method: xyz)} +@use "sass:color"; +a {b: color.mix(red, green, $method: xyz)} <===> srgb/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> non_srgb/input.scss -a {b: mix(lab(54.3 80.8 69.9), lch(46.3 68 134), $method: oklch)} +@use "sass:color"; +a {b: color.mix(lab(54.3 80.8 69.9), lch(46.3 68 134), $method: oklch)} <===> non_srgb/output.css a { @@ -19,9 +21,10 @@ a { <===> ================================================================================ <===> previously_invalid/input.scss +@use "sass:color"; // An earlier draft of CSS Colors 4 didn't allow some spaces because they were // redundant with others, but they should be allowed now. -a {b: mix(lab(54.3 80.8 69.9), lch(46.3 68 134), $method: display-p3)} +a {b: color.mix(lab(54.3 80.8 69.9), lch(46.3 68 134), $method: display-p3)} <===> previously_invalid/output.css a { @@ -31,7 +34,8 @@ a { <===> ================================================================================ <===> weighted/input.scss -a {b: mix(lab(54.3 80.8 69.9), lch(46.3 68 134), 30%, oklch)} +@use "sass:color"; +a {b: color.mix(lab(54.3 80.8 69.9), lch(46.3 68 134), 30%, oklch)} <===> weighted/output.css a { diff --git a/spec/core_functions/color/mix/explicit_weight.hrx b/spec/core_functions/color/mix/explicit_weight.hrx index 32e49e2ca9..bf5ffcecdf 100644 --- a/spec/core_functions/color/mix/explicit_weight.hrx +++ b/spec/core_functions/color/mix/explicit_weight.hrx @@ -1,5 +1,6 @@ <===> even/input.scss -a {b: mix(#91e16f, #0144bf, 50%)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 50%)} <===> even/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> first/input.scss -a {b: mix(#91e16f, #0144bf, 100%)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 100%)} <===> first/output.css a { @@ -19,7 +21,8 @@ a { <===> ================================================================================ <===> last/input.scss -a {b: mix(#91e16f, #0144bf, 0%)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 0%)} <===> last/output.css a { @@ -29,7 +32,8 @@ a { <===> ================================================================================ <===> firstwards/input.scss -a {b: mix(#91e16f, #0144bf, 92%)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 92%)} <===> firstwards/output.css a { @@ -39,7 +43,8 @@ a { <===> ================================================================================ <===> lastwards/input.scss -a {b: mix(#91e16f, #0144bf, 43%)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 43%)} <===> lastwards/output.css a { diff --git a/spec/core_functions/color/mix/hue_interpolation.hrx b/spec/core_functions/color/mix/hue_interpolation.hrx index 1b5b55bdb7..a261d7f2de 100644 --- a/spec/core_functions/color/mix/hue_interpolation.hrx +++ b/spec/core_functions/color/mix/hue_interpolation.hrx @@ -1,5 +1,6 @@ <===> default/acute/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch)} <===> default/acute/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> default/obtuse/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch)} <===> default/obtuse/output.css a { @@ -19,7 +21,8 @@ a { <===> ================================================================================ <===> shorter/acute/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch shorter hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch shorter hue)} <===> shorter/acute/output.css a { @@ -29,7 +32,8 @@ a { <===> ================================================================================ <===> shorter/obtuse/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch shorter hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch shorter hue)} <===> shorter/obtuse/output.css a { @@ -39,7 +43,8 @@ a { <===> ================================================================================ <===> longer/obtuse/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch longer hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch longer hue)} <===> longer/obtuse/output.css a { @@ -49,7 +54,8 @@ a { <===> ================================================================================ <===> increasing/acute/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch increasing hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch increasing hue)} <===> increasing/acute/output.css a { @@ -59,7 +65,8 @@ a { <===> ================================================================================ <===> increasing/obtuse/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch increasing hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch increasing hue)} <===> increasing/obtuse/output.css a { @@ -69,7 +76,8 @@ a { <===> ================================================================================ <===> decreasing/acute/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch decreasing hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oklch decreasing hue)} <===> decreasing/acute/output.css a { @@ -79,7 +87,8 @@ a { <===> ================================================================================ <===> decreasing/obtuse/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch decreasing hue)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 230), $method: oklch decreasing hue)} <===> decreasing/obtuse/output.css a { @@ -89,7 +98,8 @@ a { <===> ================================================================================ <===> weighted/input.scss -a {b: mix(red, green, 20%, lch longer hue)} +@use "sass:color"; +a {b: color.mix(red, green, 20%, lch longer hue)} <===> weighted/output.css a { @@ -99,7 +109,8 @@ a { <===> ================================================================================ <===> case_insensitive/input.scss -a {b: mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oKlCh LONger HUE)} +@use "sass:color"; +a {b: color.mix(oklch(0.5 0.1 30), oklch(0.5 0.1 190), $method: oKlCh LONger HUE)} <===> case_insensitive/output.css a { diff --git a/spec/core_functions/color/mix/mixed_spaces.hrx b/spec/core_functions/color/mix/mixed_spaces.hrx index e26fa61dc1..16e2b76a9a 100644 --- a/spec/core_functions/color/mix/mixed_spaces.hrx +++ b/spec/core_functions/color/mix/mixed_spaces.hrx @@ -1,5 +1,6 @@ <===> input.scss -a {b: mix(hsl(0 100% 50%), green, $method: lch)} +@use "sass:color"; +a {b: color.mix(hsl(0 100% 50%), green, $method: lch)} <===> output.css a { diff --git a/spec/core_functions/color/mix/named.hrx b/spec/core_functions/color/mix/named.hrx index 9cd36a77bf..1ed8ce3949 100644 --- a/spec/core_functions/color/mix/named.hrx +++ b/spec/core_functions/color/mix/named.hrx @@ -1,5 +1,6 @@ <===> polar_space/input.scss -a {b: mix($color1: #91e16f, $color2: #0144bf, $weight: 92%, $method: hsl decreasing hue)} +@use "sass:color"; +a {b: color.mix($color1: #91e16f, $color2: #0144bf, $weight: 92%, $method: hsl decreasing hue)} <===> polar_space/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> rectangular_space/input.scss -a {b: mix($color1: #91e16f, $color2: #0144bf, $weight: 92%, $method: lab)} +@use "sass:color"; +a {b: color.mix($color1: #91e16f, $color2: #0144bf, $weight: 92%, $method: lab)} <===> rectangular_space/output.css a { diff --git a/spec/core_functions/color/mix/predefined.hrx b/spec/core_functions/color/mix/predefined.hrx index d78b0a91b5..622393f0e2 100644 --- a/spec/core_functions/color/mix/predefined.hrx +++ b/spec/core_functions/color/mix/predefined.hrx @@ -1,5 +1,6 @@ <===> rgb/input.scss -a {b: mix(color(display-p3 1 0 0), color(display-p3 0 1 0), 20%, oklch)} +@use "sass:color"; +a {b: color.mix(color(display-p3 1 0 0), color(display-p3 0 1 0), 20%, oklch)} <===> rgb/output.css a { @@ -9,7 +10,8 @@ a { <===> ================================================================================ <===> rgb_explicit_method/input.scss -a {b: mix(color(display-p3 1 0 0), color(display-p3 0 1 0), 60%, $method: hsl)} +@use "sass:color"; +a {b: color.mix(color(display-p3 1 0 0), color(display-p3 0 1 0), 60%, $method: hsl)} <===> rgb_explicit_method/output.css a { @@ -19,7 +21,8 @@ a { <===> ================================================================================ <===> xyz/input.scss -a {b: mix(color(xyz 0.15 0.24 0), color(xyz 1 .2 0), 65%, lch)} +@use "sass:color"; +a {b: color.mix(color(xyz 0.15 0.24 0), color(xyz 1 .2 0), 65%, lch)} <===> xyz/output.css a { @@ -29,7 +32,8 @@ a { <===> ================================================================================ <===> xyz_explicit_method/input.scss -a {b: mix(color(xyz-d50 0.15 0.24 0), color(xyz-d65 1 .2 0), $method: hwb)} +@use "sass:color"; +a {b: color.mix(color(xyz-d50 0.15 0.24 0), color(xyz-d65 1 .2 0), $method: hwb)} <===> xyz_explicit_method/output.css a { diff --git a/spec/core_functions/color/mix/units.hrx b/spec/core_functions/color/mix/units.hrx index c4c2e1e0d0..75718126b1 100644 --- a/spec/core_functions/color/mix/units.hrx +++ b/spec/core_functions/color/mix/units.hrx @@ -1,5 +1,6 @@ <===> weight/unitless/input.scss -a {b: mix(#91e16f, #0144bf, 50)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 50)} <===> weight/unitless/output.css a { @@ -14,15 +15,16 @@ To preserve current behavior: $weight * 1% More info: https://sass-lang.com/d/function-units , -1 | a {b: mix(#91e16f, #0144bf, 50)} - | ^^^^^^^^^^^^^^^^^^^^^^^^^ +2 | a {b: color.mix(#91e16f, #0144bf, 50)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ' - input.scss 1:7 root stylesheet + input.scss 2:7 root stylesheet <===> ================================================================================ <===> weight/unknown/input.scss -a {b: mix(#91e16f, #0144bf, 50px)} +@use "sass:color"; +a {b: color.mix(#91e16f, #0144bf, 50px)} <===> weight/unknown/output.css a { @@ -37,7 +39,7 @@ To preserve current behavior: calc($weight / 1px * 1%) More info: https://sass-lang.com/d/function-units , -1 | a {b: mix(#91e16f, #0144bf, 50px)} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2 | a {b: color.mix(#91e16f, #0144bf, 50px)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ' - input.scss 1:7 root stylesheet + input.scss 2:7 root stylesheet diff --git a/spec/core_functions/color/mix/unweighted.hrx b/spec/core_functions/color/mix/unweighted.hrx index 6794e918d3..dbc0701b0b 100644 --- a/spec/core_functions/color/mix/unweighted.hrx +++ b/spec/core_functions/color/mix/unweighted.hrx @@ -1,6 +1,7 @@ <===> min_and_max/input.scss +@use "sass:color"; // Each channel becomes the average of 255 and 0, which is 128 = 0xAA. -a {b: mix(#ff00ff, #00ff00)} +a {b: color.mix(#ff00ff, #00ff00)} <===> min_and_max/output.css a { @@ -10,8 +11,9 @@ a { <===> ================================================================================ <===> identical/input.scss +@use "sass:color"; // If two channels have the same values, they should be the same in the output. -a {b: mix(#123456, #123456)} +a {b: color.mix(#123456, #123456)} <===> identical/output.css a { @@ -21,8 +23,9 @@ a { <===> ================================================================================ <===> average/input.scss +@use "sass:color"; // All channels should be averaged across the two colors. -a {b: mix(#91e16f, #0144bf)} +a {b: color.mix(#91e16f, #0144bf)} <===> average/output.css a { diff --git a/spec/core_functions/color/saturate.hrx b/spec/core_functions/color/saturate.hrx index 21c300ca32..e89a559035 100644 --- a/spec/core_functions/color/saturate.hrx +++ b/spec/core_functions/color/saturate.hrx @@ -86,6 +86,17 @@ a { } <===> two_args/max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, 100%)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestions: color.scale($color, $saturation: 100%) @@ -110,6 +121,17 @@ a { } <===> two_args/max_remaining/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, 53%)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestions: color.scale($color, $saturation: 100%) @@ -134,6 +156,17 @@ a { } <===> two_args/min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, 0%)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestion: color.adjust($color, $saturation: 0%) @@ -157,6 +190,17 @@ a { } <===> two_args/middle/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, 14%)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestions: color.scale($color, $saturation: 26.5588235294%) @@ -181,6 +225,17 @@ a { } <===> two_args/alpha/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(rgba(plum, 0.5), 100%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestions: color.scale($color, $saturation: 100%) @@ -205,6 +260,17 @@ a { } <===> two_args/named/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate($color: plum, $amount: 14%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestions: color.scale($color, $saturation: 26.5588235294%) @@ -290,6 +356,17 @@ Error: Missing argument $amount. a {b: saturate(1, 2)} <===> error/two_args/type/color/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(1, 2)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $color: 1 is not a color. , 1 | a {b: saturate(1, 2)} @@ -303,6 +380,17 @@ Error: $color: 1 is not a color. a {b: saturate(plum, blue)} <===> error/two_args/type/lightness/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, blue)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: blue is not a number. , 1 | a {b: saturate(plum, blue)} @@ -316,6 +404,17 @@ Error: $amount: blue is not a number. a {b: saturate(plum, -0.001)} <===> error/two_args/bounds/too_low/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: saturate(plum, -0.001)} @@ -329,6 +428,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: saturate(plum, 100.001)} <===> error/two_args/bounds/too_high/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(plum, 100.001)} + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected 100.001 to be within 0 and 100. , 1 | a {b: saturate(plum, 100.001)} @@ -342,6 +452,17 @@ Error: $amount: Expected 100.001 to be within 0 and 100. a {b: saturate(color(srgb 1 1 1), 10%)} <===> error/non_legacy/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(color(srgb 1 1 1), 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: saturate() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument. , 1 | a {b: saturate(color(srgb 1 1 1), 10%)} diff --git a/spec/core_functions/color/scale/global.hrx b/spec/core_functions/color/scale/global.hrx index ff58de2c65..8ff5a61a67 100644 --- a/spec/core_functions/color/scale/global.hrx +++ b/spec/core_functions/color/scale/global.hrx @@ -6,6 +6,18 @@ a { b: rgb(255, 192, 213.4); } +<===> legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.scale instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: scale-color(pink, $blue: 20%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> non_legacy/input.scss @@ -15,3 +27,15 @@ a {b: scale-color(pink, $chroma: -10%, $space: oklch)} a { b: rgb(250.9720047847, 194.0861924112, 203.8303770998); } + +<===> non_legacy/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.scale instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: scale-color(pink, $chroma: -10%, $space: oklch)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/alpha.hrx b/spec/core_functions/global/color/alpha.hrx index ab487af7de..fae5c83c86 100644 --- a/spec/core_functions/global/color/alpha.hrx +++ b/spec/core_functions/global/color/alpha.hrx @@ -5,3 +5,15 @@ a {b: alpha(#abcdef)} a { b: 1; } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.alpha instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: alpha(#abcdef)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/blue.hrx b/spec/core_functions/global/color/blue.hrx index 09dfff88dc..7f6321cf0b 100644 --- a/spec/core_functions/global/color/blue.hrx +++ b/spec/core_functions/global/color/blue.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.blue instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: blue(#abcdef)} + | ^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: blue() is deprecated. Suggestion: color.channel($color, "blue", $space: rgb) diff --git a/spec/core_functions/global/color/change.hrx b/spec/core_functions/global/color/change.hrx index 422e24da4b..ecd384cc13 100644 --- a/spec/core_functions/global/color/change.hrx +++ b/spec/core_functions/global/color/change.hrx @@ -5,3 +5,15 @@ a {b: change-color(#abcdef, $red: 10)} a { b: #0acdef; } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.change instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: change-color(#abcdef, $red: 10)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/complement.hrx b/spec/core_functions/global/color/complement.hrx index a92e5ecad8..c6bbca3cc8 100644 --- a/spec/core_functions/global/color/complement.hrx +++ b/spec/core_functions/global/color/complement.hrx @@ -5,3 +5,15 @@ a {b: complement(#abcdef)} a { b: #efcdab; } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.complement instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: complement(#abcdef)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/darken.hrx b/spec/core_functions/global/color/darken.hrx index c43a100a20..b3d3615602 100644 --- a/spec/core_functions/global/color/darken.hrx +++ b/spec/core_functions/global/color/darken.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(#abcdef, 10%)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -12.4390243902%) diff --git a/spec/core_functions/global/color/desaturate.hrx b/spec/core_functions/global/color/desaturate.hrx index d7a75ae670..f775595810 100644 --- a/spec/core_functions/global/color/desaturate.hrx +++ b/spec/core_functions/global/color/desaturate.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(#abcdef, 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: desaturate() is deprecated. Suggestions: color.scale($color, $saturation: -14.7058823529%) diff --git a/spec/core_functions/global/color/error.hrx b/spec/core_functions/global/color/error.hrx index 4a702d0de9..5ca46294dd 100644 --- a/spec/core_functions/global/color/error.hrx +++ b/spec/core_functions/global/color/error.hrx @@ -2,6 +2,17 @@ a {b: lighten(red, -0.001)} <===> too_low/lighten/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: lighten(red, -0.001)} @@ -15,6 +26,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: darken(red, -0.001)} <===> too_low/darken/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: darken(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: darken(red, -0.001)} @@ -28,6 +50,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: saturate(red, -0.001)} <===> too_low/saturate/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: saturate(red, -0.001)} @@ -41,6 +74,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: desaturate(red, -0.001)} <===> too_low/desaturate/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: desaturate(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 100. , 1 | a {b: desaturate(red, -0.001)} @@ -54,6 +98,17 @@ Error: $amount: Expected -0.001 to be within 0 and 100. a {b: fade-in(red, -0.001)} <===> too_low/fade_in/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 1. , 1 | a {b: fade-in(red, -0.001)} @@ -67,6 +122,17 @@ Error: $amount: Expected -0.001 to be within 0 and 1. a {b: fade-out(red, -0.001)} <===> too_low/fade_out/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(red, -0.001)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $amount: Expected -0.001 to be within 0 and 1. , 1 | a {b: fade-out(red, -0.001)} diff --git a/spec/core_functions/global/color/fade-in.hrx b/spec/core_functions/global/color/fade-in.hrx index 0bd3f2317e..b7ba00738a 100644 --- a/spec/core_functions/global/color/fade-in.hrx +++ b/spec/core_functions/global/color/fade-in.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-in(rgba(red, 0.5), 0.3)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-in() is deprecated. Suggestions: color.scale($color, $alpha: 60%) diff --git a/spec/core_functions/global/color/fade-out.hrx b/spec/core_functions/global/color/fade-out.hrx index b11d2f0942..30578d3ea1 100644 --- a/spec/core_functions/global/color/fade-out.hrx +++ b/spec/core_functions/global/color/fade-out.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: fade-out(rgba(red, 0.5), 0.3)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: fade-out() is deprecated. Suggestions: color.scale($color, $alpha: -60%) diff --git a/spec/core_functions/global/color/grayscale.hrx b/spec/core_functions/global/color/grayscale.hrx index d340eb2c4b..858b8e842e 100644 --- a/spec/core_functions/global/color/grayscale.hrx +++ b/spec/core_functions/global/color/grayscale.hrx @@ -6,6 +6,18 @@ a { b: rgb(127.5, 127.5, 127.5); } +<===> with_color/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.grayscale instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: grayscale(red)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_number/input.scss diff --git a/spec/core_functions/global/color/green.hrx b/spec/core_functions/global/color/green.hrx index ba85e57618..a3a2a5dbac 100644 --- a/spec/core_functions/global/color/green.hrx +++ b/spec/core_functions/global/color/green.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.green instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: green(#abcdef)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: green() is deprecated. Suggestion: color.channel($color, "green", $space: rgb) diff --git a/spec/core_functions/global/color/hue.hrx b/spec/core_functions/global/color/hue.hrx index 2e35176ca2..4ec136c7db 100644 --- a/spec/core_functions/global/color/hue.hrx +++ b/spec/core_functions/global/color/hue.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.hue instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: hue(#abcdef)} + | ^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: hue() is deprecated. Suggestion: color.channel($color, "hue", $space: hsl) diff --git a/spec/core_functions/global/color/invert.hrx b/spec/core_functions/global/color/invert.hrx index f283721d97..e04a028e59 100644 --- a/spec/core_functions/global/color/invert.hrx +++ b/spec/core_functions/global/color/invert.hrx @@ -6,6 +6,18 @@ a { b: #543210; } +<===> with_color/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(#abcdef)} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_number/input.scss @@ -16,6 +28,18 @@ a { b: invert(10%); } +<===> with_number/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(10%)} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_css_var/input.scss @@ -26,6 +50,18 @@ a { b: invert(var(--c)); } +<===> with_css_var/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(var(--c))} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_calc/input.scss @@ -36,6 +72,18 @@ a { b: invert(3); } +<===> with_calc/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: invert(calc(1 + 2))} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> with_unquoted_calc/input.scss @@ -46,3 +94,15 @@ a {b: invert(string.unquote('calc(1)'))} a { b: invert(calc(1)); } + +<===> with_unquoted_calc/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: invert(string.unquote('calc(1)'))} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 2:7 root stylesheet diff --git a/spec/core_functions/global/color/lighten.hrx b/spec/core_functions/global/color/lighten.hrx index 2567e3adc2..353cb3ba86 100644 --- a/spec/core_functions/global/color/lighten.hrx +++ b/spec/core_functions/global/color/lighten.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lighten(#abcdef, 10%)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 51%) diff --git a/spec/core_functions/global/color/lightness.hrx b/spec/core_functions/global/color/lightness.hrx index 74e786a3a2..67de575439 100644 --- a/spec/core_functions/global/color/lightness.hrx +++ b/spec/core_functions/global/color/lightness.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.lightness instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: lightness(#abcdef)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: lightness() is deprecated. Suggestion: color.channel($color, "lightness", $space: hsl) diff --git a/spec/core_functions/global/color/mix.hrx b/spec/core_functions/global/color/mix.hrx index c58c24f4d5..3a8386d76a 100644 --- a/spec/core_functions/global/color/mix.hrx +++ b/spec/core_functions/global/color/mix.hrx @@ -5,3 +5,15 @@ a {b: mix(#abcdef, #daddee)} a { b: rgb(194.5, 213, 238.5); } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.mix instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mix(#abcdef, #daddee)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/opacify.hrx b/spec/core_functions/global/color/opacify.hrx index 5d78f806c2..4caf019d8e 100644 --- a/spec/core_functions/global/color/opacify.hrx +++ b/spec/core_functions/global/color/opacify.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: opacify(rgba(red, 0.5), 0.3)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: opacify() is deprecated. Suggestions: color.scale($color, $alpha: 60%) diff --git a/spec/core_functions/global/color/opacity.hrx b/spec/core_functions/global/color/opacity.hrx index 1073c8104f..ee95428e83 100644 --- a/spec/core_functions/global/color/opacity.hrx +++ b/spec/core_functions/global/color/opacity.hrx @@ -5,3 +5,15 @@ a {b: opacity(#abcdef)} a { b: 1; } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.opacity instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: opacity(#abcdef)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/red.hrx b/spec/core_functions/global/color/red.hrx index 17a400d775..b879062cb6 100644 --- a/spec/core_functions/global/color/red.hrx +++ b/spec/core_functions/global/color/red.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.red instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: red(#abcdef)} + | ^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: red() is deprecated. Suggestion: color.channel($color, "red", $space: rgb) diff --git a/spec/core_functions/global/color/saturate.hrx b/spec/core_functions/global/color/saturate.hrx index f8b0c74657..e82f3e742e 100644 --- a/spec/core_functions/global/color/saturate.hrx +++ b/spec/core_functions/global/color/saturate.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturate(#abcdef, 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturate() is deprecated. Suggestions: color.scale($color, $saturation: 31.25%) diff --git a/spec/core_functions/global/color/saturation.hrx b/spec/core_functions/global/color/saturation.hrx index dd20c0b2a4..18aa51b271 100644 --- a/spec/core_functions/global/color/saturation.hrx +++ b/spec/core_functions/global/color/saturation.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.saturation instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: saturation(#abcdef)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: saturation() is deprecated. Suggestion: color.channel($color, "saturation", $space: hsl) diff --git a/spec/core_functions/global/color/scale.hrx b/spec/core_functions/global/color/scale.hrx index 0825f037a7..4513dbdf30 100644 --- a/spec/core_functions/global/color/scale.hrx +++ b/spec/core_functions/global/color/scale.hrx @@ -5,3 +5,15 @@ a {b: scale-color(#abcdef, $red: 10%)} a { b: rgb(179.4, 205, 239); } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.scale instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: scale-color(#abcdef, $red: 10%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/color/transparentize.hrx b/spec/core_functions/global/color/transparentize.hrx index f1bbfdb4e6..091c0f74f1 100644 --- a/spec/core_functions/global/color/transparentize.hrx +++ b/spec/core_functions/global/color/transparentize.hrx @@ -7,6 +7,17 @@ a { } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: transparentize(rgba(red, 0.5), 0.3)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: transparentize() is deprecated. Suggestions: color.scale($color, $alpha: -60%) diff --git a/spec/core_functions/global/list.hrx b/spec/core_functions/global/list.hrx index 6393e35e90..73105cdb34 100644 --- a/spec/core_functions/global/list.hrx +++ b/spec/core_functions/global/list.hrx @@ -6,6 +6,18 @@ a { b: c d e; } +<===> append/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.append instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: append(c d, e)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> index/input.scss @@ -16,6 +28,18 @@ a { b: 2; } +<===> index/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.index instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: index(a b c, b)} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> is-bracketed/input.scss @@ -26,6 +50,18 @@ a { b: false; } +<===> is-bracketed/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.is-bracketed instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: is-bracketed(a b c)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> join/input.scss @@ -36,6 +72,18 @@ a { b: c d e f; } +<===> join/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.join instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: join(c d, e f)} + | ^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> length/input.scss @@ -46,6 +94,18 @@ a { b: 3; } +<===> length/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.length instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: length(a b c)} + | ^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> nth/input.scss @@ -56,6 +116,18 @@ a { b: c; } +<===> nth/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: nth(a b c, 3)} + | ^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> list-separator/input.scss @@ -66,6 +138,18 @@ a { b: space; } +<===> list-separator/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.separator instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: list-separator(a b c)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> set-nth/input.scss @@ -76,6 +160,17 @@ a { b: c f e; } +<===> set-nth/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.set-nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: set-nth(c d e, 2, f)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet <===> ================================================================================ @@ -86,3 +181,15 @@ a {b: zip(1 2 3, c d e)} a { b: 1 c, 2 d, 3 e; } + +<===> zip/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.zip instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: zip(1 2 3, c d e)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/map.hrx b/spec/core_functions/global/map.hrx index 6026106b91..f8a14c1824 100644 --- a/spec/core_functions/global/map.hrx +++ b/spec/core_functions/global/map.hrx @@ -6,6 +6,18 @@ a { b: d; } +<===> get/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use map.get instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: map-get((c: d), c)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> merge/input.scss @@ -17,6 +29,18 @@ a { b: (c: d, e: f); } +<===> merge/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use map.merge instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: meta.inspect(map-merge((c: d), (e: f)))} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 2:20 root stylesheet + <===> ================================================================================ <===> remove/input.scss @@ -28,6 +52,18 @@ a { b: (); } +<===> remove/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use map.remove instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: meta.inspect(map-remove((c: d), c))} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 2:20 root stylesheet + <===> ================================================================================ <===> keys/input.scss @@ -38,6 +74,18 @@ a { b: c; } +<===> keys/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use map.keys instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: map-keys((c: d))} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> values/input.scss @@ -48,6 +96,18 @@ a { b: d; } +<===> values/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use map.values instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: map-values((c: d))} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> has_key/input.scss @@ -57,3 +117,15 @@ a {b: map-has-key((c: d), c)} a { b: true; } + +<===> has_key/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use map.has-key instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: map-has-key((c: d), c)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/math.hrx b/spec/core_functions/global/math.hrx index 65d00c4f94..ef1aab5343 100644 --- a/spec/core_functions/global/math.hrx +++ b/spec/core_functions/global/math.hrx @@ -6,6 +6,17 @@ a { b: 50%; } +<===> percentage/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.percentage instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: percentage(0.5)} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet <===> ================================================================================ @@ -27,6 +38,18 @@ a { b: 1; } +<===> ceil/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.ceil instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: ceil(0.5)} + | ^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> floor/input.scss @@ -37,6 +60,18 @@ a { b: 0; } +<===> floor/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.floor instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: floor(0.5)} + | ^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> abs/input.scss @@ -77,6 +112,18 @@ a { b: true; } +<===> random/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.random instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: random(5) <= 5} + | ^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> unit/input.scss @@ -87,6 +134,18 @@ a { b: "px"; } +<===> unit/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.unit instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: unit(5px)} + | ^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> unitless/input.scss @@ -97,6 +156,18 @@ a { b: true; } +<===> unitless/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.is-unitless instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: unitless(1)} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> comparable/input.scss @@ -106,3 +177,15 @@ a {b: comparable(1px, 1in)} a { b: true; } + +<===> comparable/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.compatible instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: comparable(1px, 1in)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/meta.hrx b/spec/core_functions/global/meta.hrx index 91d163c1f4..7a6b7e247b 100644 --- a/spec/core_functions/global/meta.hrx +++ b/spec/core_functions/global/meta.hrx @@ -6,6 +6,18 @@ a { b: (); } +<===> inspect/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.inspect instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: inspect(())} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> feature_exists/input.scss @@ -17,6 +29,17 @@ a { } <===> feature_exists/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.feature-exists instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: feature-exists(at-error)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + DEPRECATION WARNING: The feature-exists() function is deprecated. More info: https://sass-lang.com/d/feature-exists @@ -37,6 +60,18 @@ a { b: false; } +<===> variable_exists/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.variable-exists instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: variable-exists(c)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> global_variable_exists/input.scss @@ -47,6 +82,18 @@ a { b: false; } +<===> global_variable_exists/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.global-variable-exists instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: global-variable-exists(c)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> function_exists/input.scss @@ -57,6 +104,18 @@ a { b: false; } +<===> function_exists/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.function-exists instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: function-exists(c)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> mixin_exists/input.scss @@ -67,6 +126,18 @@ a { b: false; } +<===> mixin_exists/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.mixin-exists instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: mixin-exists(c)} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> get_function/input.scss @@ -78,6 +149,18 @@ a { b: get-function("rgb"); } +<===> get_function/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.get-function instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: meta.inspect(get-function(rgb))} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 2:20 root stylesheet + <===> ================================================================================ <===> type_of/input.scss @@ -88,6 +171,18 @@ a { b: list; } +<===> type_of/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.type-of instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: type-of(())} + | ^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> call/input.scss @@ -99,6 +194,18 @@ a { b: rgb(1, 2, 3); } +<===> call/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.call instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: call(meta.get-function("rgb"), 1, 2, 3)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 2:7 root stylesheet + <===> ================================================================================ <===> content_exists/input.scss @@ -113,6 +220,19 @@ a { b: false; } +<===> content_exists/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.content-exists instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: content-exists()} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 2:9 print-content-exists() + input.scss 5:1 root stylesheet + <===> ================================================================================ <===> keywords/input.scss @@ -128,3 +248,16 @@ a {b: meta.inspect(helper($c: d))} a { b: (c: d); } + +<===> keywords/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.keywords instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | @return keywords($args); + | ^^^^^^^^^^^^^^^ + ' + input.scss 4:11 helper() + input.scss 7:20 root stylesheet diff --git a/spec/core_functions/global/selector.hrx b/spec/core_functions/global/selector.hrx index e8a153cce0..978054531a 100644 --- a/spec/core_functions/global/selector.hrx +++ b/spec/core_functions/global/selector.hrx @@ -6,6 +6,18 @@ a { b: c d; } +<===> nest/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.nest instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: selector-nest(c, d)} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> append/input.scss @@ -16,6 +28,18 @@ a { b: cd; } +<===> append/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.append instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: selector-append(c, d)} + | ^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> replace/input.scss @@ -26,6 +50,18 @@ a { b: d; } +<===> replace/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.replace instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: selector-replace(c, c, d)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> extend/input.scss @@ -36,6 +72,18 @@ a { b: c, d; } +<===> extend/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.extend instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: selector-extend(c, c, d)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> unify/input.scss @@ -46,6 +94,18 @@ a { b: .c.d; } +<===> unify/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.unify instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: selector-unify(".c", ".d")} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> is_superselector/input.scss @@ -56,6 +116,18 @@ a { b: false; } +<===> is_superselector/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.is-superselector instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: is-superselector(c, d)} + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> simple_selectors/input.scss @@ -66,6 +138,18 @@ a { b: .c, .d; } +<===> simple_selectors/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.simple-selectors instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: simple-selectors(".c.d")} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> parse/input.scss @@ -75,3 +159,15 @@ a {b: selector-parse(".c, .d")} a { b: .c, .d; } + +<===> parse/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use selector.parse instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: selector-parse(".c, .d")} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet diff --git a/spec/core_functions/global/string.hrx b/spec/core_functions/global/string.hrx index e9c90b9fbd..384e84ed96 100644 --- a/spec/core_functions/global/string.hrx +++ b/spec/core_functions/global/string.hrx @@ -6,6 +6,18 @@ a { b: c; } +<===> unquote/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: unquote("c")} + | ^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> quote/input.scss @@ -16,6 +28,18 @@ a { b: "c"; } +<===> quote/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.quote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: quote(c)} + | ^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> length/input.scss @@ -26,6 +50,18 @@ a { b: 1; } +<===> length/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.length instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: str-length("c")} + | ^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> insert/input.scss @@ -36,6 +72,18 @@ a { b: "dc"; } +<===> insert/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.insert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: str-insert("c", "d", 1)} + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> index/input.scss @@ -46,6 +94,18 @@ a { b: 1; } +<===> index/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.index instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: str-index("c", "c")} + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> slice/input.scss @@ -56,6 +116,18 @@ a { b: "c"; } +<===> slice/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.slice instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: str-slice("c", 1, 1)} + | ^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> to_upper_case/input.scss @@ -66,6 +138,18 @@ a { b: "C"; } +<===> to_upper_case/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.to-upper-case instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: to-upper-case("c")} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> unique_id/input.scss @@ -76,3 +160,15 @@ a {b: meta.type-of(unique-id())} a { b: string; } + +<===> unique_id/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unique-id instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | a {b: meta.type-of(unique-id())} + | ^^^^^^^^^^^ + ' + input.scss 2:20 root stylesheet diff --git a/spec/core_functions/math/max.hrx b/spec/core_functions/math/max.hrx index 5002bbb7c5..99b8ef33a8 100644 --- a/spec/core_functions/math/max.hrx +++ b/spec/core_functions/math/max.hrx @@ -98,6 +98,18 @@ a { b: 3px; } +<===> global/modulo/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.max instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: max(1px, 7px % 4)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> global/trailing_comma/input.scss diff --git a/spec/core_functions/math/min.hrx b/spec/core_functions/math/min.hrx index 7be2d56837..4c3dccbc3a 100644 --- a/spec/core_functions/math/min.hrx +++ b/spec/core_functions/math/min.hrx @@ -98,6 +98,18 @@ a { b: 1px; } +<===> global/modulo/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.min instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: min(1px, 7px % 4)} + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> global/trailing_comma/input.scss diff --git a/spec/core_functions/meta/function_exists.hrx b/spec/core_functions/meta/function_exists.hrx index d589849faf..91cec308b9 100644 --- a/spec/core_functions/meta/function_exists.hrx +++ b/spec/core_functions/meta/function_exists.hrx @@ -38,6 +38,16 @@ a { b: true; } +<===> same_module/through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> same_module/dash_insensitive/dash_to_underscore/input.scss diff --git a/spec/core_functions/meta/get_function/same_module.hrx b/spec/core_functions/meta/get_function/same_module.hrx index b7f7cd228f..d640d9b01b 100644 --- a/spec/core_functions/meta/get_function/same_module.hrx +++ b/spec/core_functions/meta/get_function/same_module.hrx @@ -42,6 +42,32 @@ a { b: 1; } +<===> built_in/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.round instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | a {b: meta.call($round-fn, 0.6)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 4:7 root stylesheet + +<===> +================================================================================ +<===> through_use/input.scss +@use "sass:math"; +@use "sass:meta"; +$round-fn: meta.get-function(round, $module: math); + +a {b: meta.call($round-fn, 0.6)} + +<===> through_use/output.css +a { + b: 1; +} + <===> ================================================================================ <===> through_import/input.scss @@ -57,6 +83,16 @@ a { b: 12; } +<===> through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> plain_css/input.scss @@ -75,6 +111,18 @@ a { css-fn: round(0.6); } +<===> plain_css/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.round instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +6 | sass-fn: meta.call($sass-fn, 0.6); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 6:12 root stylesheet + <===> ================================================================================ <===> dash_insensitive/dash_to_underscore/input.scss diff --git a/spec/core_functions/meta/get_mixin/same_module.hrx b/spec/core_functions/meta/get_mixin/same_module.hrx index 288396a841..14d679090b 100644 --- a/spec/core_functions/meta/get_mixin/same_module.hrx +++ b/spec/core_functions/meta/get_mixin/same_module.hrx @@ -44,6 +44,16 @@ a { b: 12; } +<===> through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> dash_insensitive/dash_to_underscore/input.scss diff --git a/spec/core_functions/meta/global_variable_exists.hrx b/spec/core_functions/meta/global_variable_exists.hrx index 151d06821e..c3f76658fc 100644 --- a/spec/core_functions/meta/global_variable_exists.hrx +++ b/spec/core_functions/meta/global_variable_exists.hrx @@ -38,6 +38,16 @@ a { b: true; } +<===> same_module/through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> same_module/non_existent/input.scss diff --git a/spec/core_functions/meta/load_css/with.hrx b/spec/core_functions/meta/load_css/with.hrx index 6a2952ee59..602cbd9bc9 100644 --- a/spec/core_functions/meta/load_css/with.hrx +++ b/spec/core_functions/meta/load_css/with.hrx @@ -166,6 +166,16 @@ b { c: configured; } +<===> through_import/direct/warning +DEPRECATION WARNING on line 1, column 9 of _loaded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> through_import/transitive/input.scss @@ -187,6 +197,25 @@ b { c: configured; } +<===> through_import/transitive/warning +DEPRECATION WARNING on line 1, column 9 of _loaded.scss: +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"; + | ^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _midstream.scss: +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"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> through_forward/bare/input.scss diff --git a/spec/core_functions/meta/mixin_exists.hrx b/spec/core_functions/meta/mixin_exists.hrx index 6b0b310ed5..d4c1e3b491 100644 --- a/spec/core_functions/meta/mixin_exists.hrx +++ b/spec/core_functions/meta/mixin_exists.hrx @@ -38,6 +38,16 @@ a { b: true; } +<===> same_module/through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> same_module/non_existent/input.scss diff --git a/spec/core_functions/meta/module_functions.hrx b/spec/core_functions/meta/module_functions.hrx index ff475aedba..5a37827c84 100644 --- a/spec/core_functions/meta/module_functions.hrx +++ b/spec/core_functions/meta/module_functions.hrx @@ -110,6 +110,16 @@ a { d: d value; } +<===> through_import/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> core_module/input.scss diff --git a/spec/core_functions/meta/module_mixins.hrx b/spec/core_functions/meta/module_mixins.hrx index 274f8288eb..2f0e67afed 100644 --- a/spec/core_functions/meta/module_mixins.hrx +++ b/spec/core_functions/meta/module_mixins.hrx @@ -138,6 +138,16 @@ a { d-d: value; } +<===> through_import/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> core_module/input.scss diff --git a/spec/core_functions/meta/module_variables.hrx b/spec/core_functions/meta/module_variables.hrx index 4192ddd29b..ce4a87bd1c 100644 --- a/spec/core_functions/meta/module_variables.hrx +++ b/spec/core_functions/meta/module_variables.hrx @@ -86,6 +86,16 @@ a { b: ("c": c value, "d": d value, "e": e value); } +<===> through_import/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> core_module/input.scss diff --git a/spec/core_functions/meta/variable_exists.hrx b/spec/core_functions/meta/variable_exists.hrx index 0b2372acd2..898eb898b9 100644 --- a/spec/core_functions/meta/variable_exists.hrx +++ b/spec/core_functions/meta/variable_exists.hrx @@ -64,6 +64,16 @@ a { b: true; } +<===> through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> through_use/input.scss diff --git a/spec/css/custom_properties/name_interpolation.hrx b/spec/css/custom_properties/name_interpolation.hrx index 06491fc77d..66bf90c792 100644 --- a/spec/css/custom_properties/name_interpolation.hrx +++ b/spec/css/custom_properties/name_interpolation.hrx @@ -62,3 +62,13 @@ a { #{--}: b c } a { --: b c; } + +<===> import_nesting_use/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 'foo'; + | ^^^^^ + ' diff --git a/spec/css/font-face.hrx b/spec/css/font-face.hrx index 1309231aea..a745649297 100644 --- a/spec/css/font-face.hrx +++ b/spec/css/font-face.hrx @@ -89,6 +89,15 @@ c { } <===> bubble/loaded/import/warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 'upstream'; + | ^^^^^^^^^^ + ' + DEPRECATION WARNING: Sass's behavior for declarations that appear after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested diff --git a/spec/css/plain/error/statement/style_rule.hrx b/spec/css/plain/error/statement/style_rule.hrx index 89a50f02fd..f2695e1cd8 100644 --- a/spec/css/plain/error/statement/style_rule.hrx +++ b/spec/css/plain/error/statement/style_rule.hrx @@ -133,6 +133,15 @@ a {@import "plain"} > b {c: d} <===> leading_combinator/through_import/error +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "plain"} + | ^^^^^^^ + ' + Error: Top-level leading combinators aren't allowed in plain CSS. , 1 | > b {c: d} diff --git a/spec/css/plain/functions.hrx b/spec/css/plain/functions.hrx index e779334323..90bcb1fc12 100644 --- a/spec/css/plain/functions.hrx +++ b/spec/css/plain/functions.hrx @@ -11,6 +11,16 @@ c { d: a(); } +<===> defined_elsewhere/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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 "plain"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> hsl/input.scss diff --git a/spec/css/plain/import/css_before_index.hrx b/spec/css/plain/import/css_before_index.hrx index 7f4921233d..512d8d68e1 100644 --- a/spec/css/plain/import/css_before_index.hrx +++ b/spec/css/plain/import/css_before_index.hrx @@ -11,3 +11,13 @@ other {index: true} other { index: false; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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'; + | ^^^^^^^ + ' diff --git a/spec/css/plain/import/in_css.hrx b/spec/css/plain/import/in_css.hrx index 8c902cac89..ab1fa85ffe 100644 --- a/spec/css/plain/import/in_css.hrx +++ b/spec/css/plain/import/in_css.hrx @@ -6,3 +6,13 @@ <===> output.css @import "whatever"; + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "plain"; + | ^^^^^^^ + ' diff --git a/spec/css/plain/import/partial_conflict.hrx b/spec/css/plain/import/partial_conflict.hrx index 12677314f5..ab8b082074 100644 --- a/spec/css/plain/import/partial_conflict.hrx +++ b/spec/css/plain/import/partial_conflict.hrx @@ -8,6 +8,15 @@ plain {partial: true} plain {partial: false} <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "plain"; + | ^^^^^^^ + ' + Error: It's not clear which file to import. Found: _plain.css plain.css diff --git a/spec/css/plain/import/sass_takes_precedence.hrx b/spec/css/plain/import/sass_takes_precedence.hrx index f7ee0817fd..8bd0502f3e 100644 --- a/spec/css/plain/import/sass_takes_precedence.hrx +++ b/spec/css/plain/import/sass_takes_precedence.hrx @@ -12,3 +12,13 @@ other other { syntax: sass; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' diff --git a/spec/css/plain/import/scss_takes_precedence.hrx b/spec/css/plain/import/scss_takes_precedence.hrx index cb4f5cd91a..153b78756b 100644 --- a/spec/css/plain/import/scss_takes_precedence.hrx +++ b/spec/css/plain/import/scss_takes_precedence.hrx @@ -11,3 +11,13 @@ other {syntax: scss} other { syntax: scss; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' diff --git a/spec/css/plain/style_rule.hrx b/spec/css/plain/style_rule.hrx index 1ae9d0e30a..fb795d2da6 100644 --- a/spec/css/plain/style_rule.hrx +++ b/spec/css/plain/style_rule.hrx @@ -239,6 +239,16 @@ a b { c: d; } +<===> nesting/through_import/one_level/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "plain"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> nesting/through_import/two_levels/input.scss @@ -254,6 +264,16 @@ a b { } } +<===> nesting/through_import/two_levels/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "plain"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> nesting/through_import/top_level_parent/input.scss @@ -269,6 +289,16 @@ a & { } } +<===> nesting/through_import/top_level_parent/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "plain"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> top_level_parent/input.scss diff --git a/spec/directives/at_root.hrx b/spec/directives/at_root.hrx index bcd185bda8..1f129eb9bc 100644 --- a/spec/directives/at_root.hrx +++ b/spec/directives/at_root.hrx @@ -75,6 +75,16 @@ b { c: d; } +<===> nested_import/with_no_use/warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> nested_import/with_builtin_use/input.scss @@ -96,6 +106,16 @@ b { c: d; } +<===> nested_import/with_builtin_use/warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> nested_import/with_user_use/options.yml diff --git a/spec/directives/forward/css.hrx b/spec/directives/forward/css.hrx index ddb4fc8176..87cab03585 100644 --- a/spec/directives/forward/css.hrx +++ b/spec/directives/forward/css.hrx @@ -106,3 +106,13 @@ in-forwarded { in-input { a: b; } + +<===> forward_into_import/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/forward/error/load.hrx b/spec/directives/forward/error/load.hrx index 4fc692b492..5cc65cb8e0 100644 --- a/spec/directives/forward/error/load.hrx +++ b/spec/directives/forward/error/load.hrx @@ -73,6 +73,15 @@ Error: Module loop: this module is already being loaded. @import "input"; <===> loop/forward_to_import/error +DEPRECATION WARNING on line 1, column 9 of other.scss: +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 "input"; + | ^^^^^^^ + ' + Error: This file is already being loaded. , 1 | @import "input"; diff --git a/spec/directives/forward/error/member/import_to_forward.hrx b/spec/directives/forward/error/member/import_to_forward.hrx index a86c7df638..315ad3975f 100644 --- a/spec/directives/forward/error/member/import_to_forward.hrx +++ b/spec/directives/forward/error/member/import_to_forward.hrx @@ -10,6 +10,15 @@ b {c: $d} $d: e; <===> nested/variable/error +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "midstream"} + | ^^^^^^^^^^^ + ' + Error: Undefined variable. , 3 | b {c: $d} @@ -31,6 +40,15 @@ b {@include c} @mixin c {d: e} <===> nested/mixin/error +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "midstream"} + | ^^^^^^^^^^^ + ' + Error: Undefined mixin. , 3 | b {@include c} @@ -55,3 +73,13 @@ b {c: d()} b { c: d(); } + +<===> nested/function/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "midstream"} + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/error/syntax.hrx b/spec/directives/forward/error/syntax.hrx index 569da63639..d11d5e9117 100644 --- a/spec/directives/forward/error/syntax.hrx +++ b/spec/directives/forward/error/syntax.hrx @@ -284,6 +284,15 @@ Error: @forward rules must be written before any other rules. @forward "b"; <===> after/at_rule/import/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "a"; + | ^^^ + ' + Error: @forward rules must be written before any other rules. , 2 | @forward "b"; diff --git a/spec/directives/forward/extend.hrx b/spec/directives/forward/extend.hrx index 8cc32b0dcd..27b4c414c0 100644 --- a/spec/directives/forward/extend.hrx +++ b/spec/directives/forward/extend.hrx @@ -61,3 +61,13 @@ in-imported {a: b} in-imported, in-input { a: b; } + +<===> forward_into_import/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/forward_to_import.hrx b/spec/directives/forward/member/import/forward_to_import.hrx index 2617c991da..ac157528ca 100644 --- a/spec/directives/forward/member/import/forward_to_import.hrx +++ b/spec/directives/forward/member/import/forward_to_import.hrx @@ -17,6 +17,16 @@ b { c: d; } +<===> mixin/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_assignment/input.scss @@ -42,6 +52,16 @@ b { c: new value; } +<===> variable_assignment/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_use/input.scss @@ -63,6 +83,16 @@ a { b: d; } +<===> variable_use/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> with/input.scss @@ -85,3 +115,13 @@ $c: old value !default; a { b: new value; } + +<===> with/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/import_to_forward/nested.hrx b/spec/directives/forward/member/import/import_to_forward/nested.hrx index 898dc32c12..598f59209f 100644 --- a/spec/directives/forward/member/import/import_to_forward/nested.hrx +++ b/spec/directives/forward/member/import/import_to_forward/nested.hrx @@ -16,6 +16,16 @@ a { c: d; } +<===> mixin/warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_assignment/input.scss @@ -39,6 +49,16 @@ a { c: new value; } +<===> variable_assignment/warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_use/input.scss @@ -58,3 +78,13 @@ $c: d; a { b: d; } + +<===> variable_use/warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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"; + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/import_to_forward/override.hrx b/spec/directives/forward/member/import/import_to_forward/override.hrx index 039baa1b8f..321cf659fd 100644 --- a/spec/directives/forward/member/import/import_to_forward/override.hrx +++ b/spec/directives/forward/member/import/import_to_forward/override.hrx @@ -31,6 +31,25 @@ after-second { a: 2; } +<===> override/variable/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "midstream1"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 4, column 9 of input.scss: +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 "midstream2"; + | ^^^^^^^^^^^^ + ' + <===> ================================================================================ <===> override/mixin/input.scss @@ -61,6 +80,25 @@ after-second { b: 2; } +<===> override/mixin/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "midstream1"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 4, column 9 of input.scss: +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 "midstream2"; + | ^^^^^^^^^^^^ + ' + <===> ================================================================================ <===> override/function/input.scss @@ -90,3 +128,22 @@ after-first { after-second { a: 2; } + +<===> override/function/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "midstream1"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 4, column 9 of input.scss: +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 "midstream2"; + | ^^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/import_to_forward/top_level.hrx b/spec/directives/forward/member/import/import_to_forward/top_level.hrx index 3950fa2edc..00f3440642 100644 --- a/spec/directives/forward/member/import/import_to_forward/top_level.hrx +++ b/spec/directives/forward/member/import/import_to_forward/top_level.hrx @@ -14,6 +14,16 @@ b { c: d; } +<===> mixin/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_assignment/input.scss @@ -36,6 +46,16 @@ b { c: new value; } +<===> variable_assignment/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_use/input.scss @@ -54,6 +74,16 @@ a { b: d; } +<===> variable_use/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> post_facto/without_use/input.scss @@ -76,6 +106,25 @@ b { c: e; } +<===> post_facto/without_use/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> post_facto/with_use/input.scss @@ -99,3 +148,22 @@ $d: e; b { c: e; } + +<===> post_facto/with_use/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/import_to_forward/transitive.hrx b/spec/directives/forward/member/import/import_to_forward/transitive.hrx index b805231340..4db7da1bf5 100644 --- a/spec/directives/forward/member/import/import_to_forward/transitive.hrx +++ b/spec/directives/forward/member/import/import_to_forward/transitive.hrx @@ -17,6 +17,25 @@ a { b: d; } +<===> transitive/variable/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "downstream"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _downstream.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> transitive/mixin/input.scss @@ -38,6 +57,25 @@ a { c: d; } +<===> transitive/mixin/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "downstream"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _downstream.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> transitive/function/input.scss @@ -58,3 +96,22 @@ a {b: c()} a { b: d; } + +<===> transitive/function/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "downstream"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _downstream.scss: +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"; + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/import_to_forward/use_to.hrx b/spec/directives/forward/member/import/import_to_forward/use_to.hrx index f08f8cf156..33631cfdd9 100644 --- a/spec/directives/forward/member/import/import_to_forward/use_to.hrx +++ b/spec/directives/forward/member/import/import_to_forward/use_to.hrx @@ -17,6 +17,16 @@ b { c: d; } +<===> mixin/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_assignment/input.scss @@ -42,6 +52,16 @@ b { c: new value; } +<===> variable_assignment/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_use/input.scss @@ -62,3 +82,13 @@ $c: d; a { b: d; } + +<===> variable_use/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/import_to_forward/with.hrx b/spec/directives/forward/member/import/import_to_forward/with.hrx index 420751bcb9..7200c0c455 100644 --- a/spec/directives/forward/member/import/import_to_forward/with.hrx +++ b/spec/directives/forward/member/import/import_to_forward/with.hrx @@ -16,6 +16,16 @@ a { b: midstream; } +<===> default/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> non_overridable/input.scss @@ -38,6 +48,16 @@ b { c: midstream; } +<===> non_overridable/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> overridden/input.scss @@ -59,3 +79,13 @@ $a: upstream !default; b { c: input; } + +<===> overridden/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/member/import/precedence.hrx b/spec/directives/forward/member/import/precedence.hrx index 1f196f8ab8..ab037e30fd 100644 --- a/spec/directives/forward/member/import/precedence.hrx +++ b/spec/directives/forward/member/import/precedence.hrx @@ -22,6 +22,16 @@ b { c: in-upstream; } +<===> top_level/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> nested/input.scss @@ -43,3 +53,13 @@ $a: in-upstream; b { c: in-upstream; } + +<===> nested/warning +DEPRECATION WARNING on line 4, column 11 of input.scss: +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"; + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/forward/with/through_import.hrx b/spec/directives/forward/with/through_import.hrx index 7c4d44b40f..5913c4eed0 100644 --- a/spec/directives/forward/with/through_import.hrx +++ b/spec/directives/forward/with/through_import.hrx @@ -16,6 +16,16 @@ b { c: configured; } +<===> direct/warning +DEPRECATION WARNING on line 1, column 9 of _midstream.scss: +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"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> transitive/input.scss @@ -38,3 +48,22 @@ b {c: $a} b { c: configured; } + +<===> transitive/warning +DEPRECATION WARNING on line 1, column 9 of _forwarded.scss: +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 "imported_downstream"; + | ^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _imported_downstream.scss: +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 "imported_upstream"; + | ^^^^^^^^^^^^^^^^^^^ + ' diff --git a/spec/directives/import/configuration.hrx b/spec/directives/import/configuration.hrx index a1de8e378b..681f1922c0 100644 --- a/spec/directives/import/configuration.hrx +++ b/spec/directives/import/configuration.hrx @@ -14,6 +14,16 @@ b { c: configured; } +<===> same_file/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> nested/input.scss @@ -34,6 +44,16 @@ a b { c: configured; } +<===> nested/warning +DEPRECATION WARNING on line 3, column 11 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> prefixed_as/input.scss @@ -52,6 +72,16 @@ b { c: configured; } +<===> prefixed_as/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> separate_file/input.scss @@ -73,6 +103,25 @@ b { c: configured; } +<===> separate_file/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> unrelated_variable/input.scss @@ -92,6 +141,16 @@ b { c: configured; } +<===> unrelated_variable/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> midstream_definition/with_config/input.scss @@ -111,6 +170,16 @@ b { c: configured; } +<===> midstream_definition/with_config/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> midstream_definition/no_config/input.scss @@ -129,6 +198,16 @@ b { c: original; } +<===> midstream_definition/no_config/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> import_twice/no_change/input.scss @@ -152,6 +231,25 @@ b { c: configured; } +<===> import_twice/no_change/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> import_twice/with_change/input.scss @@ -176,6 +274,25 @@ b { c: configured; } +<===> import_twice/with_change/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 4, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> import_twice/still_changes_in_same_file/input.scss @@ -207,6 +324,25 @@ d { e: changed; } +<===> import_twice/still_changes_in_same_file/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> indirect/through_import/input.scss @@ -228,6 +364,25 @@ b { c: configured; } +<===> indirect/through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _midstream.scss: +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"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> indirect/through_forward/input.scss @@ -251,3 +406,13 @@ b {c: $a} b { c: configured; } + +<===> indirect/through_forward/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' diff --git a/spec/directives/import/css.hrx b/spec/directives/import/css.hrx index 1d2be9254b..e19ff09949 100644 --- a/spec/directives/import/css.hrx +++ b/spec/directives/import/css.hrx @@ -23,3 +23,22 @@ a {b: c} a { b: c; } + +<===> css_import_after_style_rule/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "rule"; + | ^^^^^^ + ' + +DEPRECATION WARNING on line 3, column 9 of input.scss: +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 "import"; + | ^^^^^^^^ + ' diff --git a/spec/directives/import/error/conflict.hrx b/spec/directives/import/error/conflict.hrx index 3d6fac17b0..95fc01bdba 100644 --- a/spec/directives/import/error/conflict.hrx +++ b/spec/directives/import/error/conflict.hrx @@ -10,6 +10,15 @@ a {partial: true} a {partial: false} <===> partial/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: It's not clear which file to import. Found: _other.scss other.scss @@ -34,6 +43,15 @@ a a {syntax: scss} <===> extension/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: It's not clear which file to import. Found: other.sass other.scss @@ -67,6 +85,15 @@ a a {syntax: scss; partial: true} <===> all/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: It's not clear which file to import. Found: _other.sass other.sass @@ -92,6 +119,15 @@ a {partial: true} a {partial: false} <===> index/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: It's not clear which file to import. Found: other/_index.scss other/index.scss @@ -116,6 +152,15 @@ a syntax: sass <===> import_only/no_extension/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: It's not clear which file to import. Found: other.import.sass other.import.scss @@ -139,6 +184,15 @@ a {partial: false} a {partial: true} <===> import_only/with_extension/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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.scss"; + | ^^^^^^^^^^^^ + ' + Error: It's not clear which file to import. Found: _other.import.scss other.import.scss diff --git a/spec/directives/import/error/member.hrx b/spec/directives/import/error/member.hrx index 2d23e1734f..dc9e9c9deb 100644 --- a/spec/directives/import/error/member.hrx +++ b/spec/directives/import/error/member.hrx @@ -7,6 +7,15 @@ b {c: $d} $d: e; <===> inaccessible/nested/variable/error +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' + Error: Undefined variable. , 3 | b {c: $d} @@ -25,6 +34,15 @@ b {@include c} @mixin c() {d: e}; <===> inaccessible/nested/mixin/error +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' + Error: Undefined mixin. , 3 | b {@include c} @@ -46,3 +64,13 @@ b {c: d()} b { c: d(); } + +<===> inaccessible/nested/function/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' diff --git a/spec/directives/import/error/not_found.hrx b/spec/directives/import/error/not_found.hrx index 751d550172..228f3417ed 100644 --- a/spec/directives/import/error/not_found.hrx +++ b/spec/directives/import/error/not_found.hrx @@ -5,6 +5,15 @@ a {b: c} <===> no_extension/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: Can't find stylesheet to import. , 1 | @import "other"; @@ -23,6 +32,15 @@ Error: Can't find stylesheet to import. a {b: c} <===> directory_dot_import/error +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: Can't find stylesheet to import. , 3 | @import "other"; @@ -45,6 +63,24 @@ a {b: ""} @import "sibling" <===> parent_relative/error +DEPRECATION WARNING on line 4, column 9 of input.scss: +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 "dir/child" + | ^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of dir/child.scss: +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 "sibling" + | ^^^^^^^^^ + ' + Error: Can't find stylesheet to import. , 1 | @import "sibling" diff --git a/spec/directives/import/escaped.hrx b/spec/directives/import/escaped.hrx index 8a2688367f..8a29154d65 100644 --- a/spec/directives/import/escaped.hrx +++ b/spec/directives/import/escaped.hrx @@ -8,3 +8,13 @@ a {b: c} a { b: c; } + +<===> warning +DEPRECATION WARNING on line 1, column 11 of input.scss: +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 | @impor\74 "other" + | ^^^^^^^ + ' diff --git a/spec/directives/import/implicit_dependencies.hrx b/spec/directives/import/implicit_dependencies.hrx index cd7352c9fe..da631f3cf9 100644 --- a/spec/directives/import/implicit_dependencies.hrx +++ b/spec/directives/import/implicit_dependencies.hrx @@ -15,6 +15,25 @@ a { b: value; } +<===> no_forward/no_use/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> no_forward/use_in_first/input.scss @@ -36,6 +55,25 @@ a { b: value; } +<===> no_forward/use_in_first/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> no_forward/use_in_second/input.scss @@ -57,6 +95,25 @@ a { b: value; } +<===> no_forward/use_in_second/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> no_forward/use_in_both/input.scss @@ -80,6 +137,25 @@ a { b: value; } +<===> no_forward/use_in_both/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> forwarded_first/no_use/input.scss @@ -102,6 +178,25 @@ a { b: value; } +<===> forwarded_first/no_use/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> forwarded_first/use_in_first/input.scss @@ -126,6 +221,25 @@ a { b: value; } +<===> forwarded_first/use_in_first/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> forwarded_first/use_in_second/input.scss @@ -150,6 +264,25 @@ a { b: value; } +<===> forwarded_first/use_in_second/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> forwarded_first/use_in_both/input.scss @@ -175,3 +308,22 @@ a { a { b: value; } + +<===> forwarded_first/use_in_both/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "first"; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "second"; + | ^^^^^^^^ + ' diff --git a/spec/directives/import/load.hrx b/spec/directives/import/load.hrx index bba6cbb5ac..b9c96b8a61 100644 --- a/spec/directives/import/load.hrx +++ b/spec/directives/import/load.hrx @@ -16,6 +16,16 @@ a { syntax: sass; } +<===> explicit_extension/sass/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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.sass" + | ^^^^^^^^^^^^ + ' + <===> ================================================================================ <===> explicit_extension/scss/input.scss @@ -36,6 +46,16 @@ a { syntax: scss; } +<===> explicit_extension/scss/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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.scss" + | ^^^^^^^^^^^^ + ' + <===> ================================================================================ <===> precedence/scss_before_css/input.scss @@ -52,6 +72,16 @@ a { syntax: scss; } +<===> precedence/scss_before_css/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/sass_before_css/input.scss @@ -69,6 +99,16 @@ a { syntax: sass; } +<===> precedence/sass_before_css/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/normal_before_index/input.scss @@ -85,6 +125,16 @@ a { index: false; } +<===> precedence/normal_before_index/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "dir"; + | ^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/implicit_extension/input.scss @@ -104,6 +154,16 @@ a { import-only: true; } +<===> precedence/import_only/implicit_extension/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/explicit_extension/input.scss @@ -120,6 +180,16 @@ a { import-only: true; } +<===> precedence/import_only/explicit_extension/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/partial_before_normal/input.scss @@ -137,6 +207,16 @@ a { import-only: true; } +<===> precedence/import_only/partial_before_normal/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/normal_before_partial/input.scss @@ -154,6 +234,16 @@ a { import-only: true; } +<===> precedence/import_only/normal_before_partial/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/before_index/input.scss @@ -171,6 +261,16 @@ a { import-only: true; } +<===> precedence/import_only/before_index/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/index/input.scss @@ -188,6 +288,16 @@ a { import-only: true; } +<===> precedence/import_only/index/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> precedence/import_only/index_after_normal/input.scss @@ -205,6 +315,16 @@ a { import-only: false; } +<===> precedence/import_only/index_after_normal/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + <===> ================================================================================ <===> index/scss/input.scss @@ -220,6 +340,16 @@ a { a: b; } +<===> index/scss/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "dir"; + | ^^^^^ + ' + <===> ================================================================================ <===> index/sass/input.scss @@ -234,6 +364,16 @@ a { a: b; } +<===> index/sass/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "dir"; + | ^^^^^ + ' + <===> ================================================================================ <===> index/partial/input.scss @@ -249,6 +389,16 @@ a { a: b; } +<===> index/partial/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "dir"; + | ^^^^^ + ' + <===> ================================================================================ <===> index/dir_dot_foo/input.scss @@ -264,6 +414,16 @@ a { a: b; } +<===> index/dir_dot_foo/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "dir.foo"; + | ^^^^^^^^^ + ' + <===> ================================================================================ <===> index/dir_dot_scss/input.scss @@ -275,6 +435,15 @@ a { } <===> index/dir_dot_scss/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "dir.scss"; + | ^^^^^^^^^^ + ' + Error: Can't find stylesheet to import. , 1 | @import "dir.scss"; diff --git a/spec/directives/import/nested.hrx b/spec/directives/import/nested.hrx index 9ef7e77066..e7ca694bfd 100644 --- a/spec/directives/import/nested.hrx +++ b/spec/directives/import/nested.hrx @@ -19,6 +19,16 @@ x { function: value; } +<===> scope/function/warning +DEPRECATION WARNING on line 8, column 11 of input.scss: +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 + , +8 | @import 'other'; + | ^^^^^^^ + ' + <===> ================================================================================ <===> scope/mixin/input.scss @@ -40,6 +50,16 @@ x { y: z; } +<===> scope/mixin/warning +DEPRECATION WARNING on line 8, column 11 of input.scss: +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 + , +8 | @import 'other'; + | ^^^^^^^ + ' + <===> ================================================================================ <===> scope/variable/input.scss @@ -60,6 +80,16 @@ x { var: value; } +<===> scope/variable/warning +DEPRECATION WARNING on line 5, column 11 of input.scss: +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 'other'; + | ^^^^^^^ + ' + <===> ================================================================================ <===> at_rule/keyframes/input.scss @@ -79,6 +109,16 @@ a {@import "other"} } } +<===> at_rule/keyframes/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> at_rule/childless/input.scss @@ -92,6 +132,16 @@ a { @b c; } +<===> at_rule/childless/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> at_rule/declaration_child/input.scss @@ -107,6 +157,16 @@ a {@import "other"} } } +<===> at_rule/declaration_child/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> at_rule/rule_child/input.scss @@ -124,6 +184,16 @@ a {@import "other"} } } +<===> at_rule/rule_child/warning +DEPRECATION WARNING on line 1, column 12 of input.scss: +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 | a {@import "other"} + | ^^^^^^^ + ' + <===> ================================================================================ <===> with_comment/input.scss @@ -142,3 +212,40 @@ a {@import "other"} <===> with_comment/output.css /* Y */ /* Y */ + +<===> with_comment/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 'b'; + | ^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 'c'; + | ^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _b.scss: +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 'a' + | ^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _c.scss: +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 'a' + | ^^^ + ' diff --git a/spec/directives/use/css/import.hrx b/spec/directives/use/css/import.hrx index 4d54df8a44..62b398cb5f 100644 --- a/spec/directives/use/css/import.hrx +++ b/spec/directives/use/css/import.hrx @@ -24,6 +24,16 @@ in-input { a: b; } +<===> use_into_import/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> use_into_import_into_use/input.scss @@ -61,6 +71,16 @@ in-input { a: b; } +<===> use_into_import_into_use/warning +DEPRECATION WARNING on line 1, column 9 of _used-downstream.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> use_and_import_same/input.scss @@ -87,6 +107,15 @@ a { } <===> use_and_import_same/warning +DEPRECATION WARNING on line 5, column 9 of input.scss: +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 "other"; + | ^^^^^^^ + ' + _other.scss:3 DEBUG: evaluating other _other.scss:3 DEBUG: evaluating other @@ -118,6 +147,15 @@ a { } <===> use_module_used_by_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + _shared.scss:3 DEBUG: evaluating shared <===> @@ -148,6 +186,16 @@ in-input { a: b; } +<===> import_into_use/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> nested_import_into_use/input.scss @@ -170,11 +218,20 @@ in-used {parent: meta.inspect(&)} outer in-used { parent: (in-used,); } - outer in-imported { parent: (outer in-imported,); } +<===> nested_import_into_use/warning +DEPRECATION WARNING on line 1, column 16 of input.scss: +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 | outer {@import "imported"} + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> import_into_use_into_import/input.scss @@ -212,6 +269,25 @@ in-input { a: b; } +<===> import_into_use_into_import/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "imported-downstream"; + | ^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported-upstream"; + | ^^^^^^^^^^^^^^^^^^^ + ' + <===> ================================================================================ <===> import_module_imported_by_use/input.scss @@ -238,5 +314,23 @@ a { } <===> import_module_imported_by_use/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "shared"; + | ^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "shared"; + | ^^^^^^^^ + ' + _shared.scss:3 DEBUG: evaluating shared _shared.scss:3 DEBUG: evaluating shared diff --git a/spec/directives/use/css/order/use_and_import.hrx b/spec/directives/use/css/order/use_and_import.hrx index 1f940676ea..b2eae55eaf 100644 --- a/spec/directives/use/css/order/use_and_import.hrx +++ b/spec/directives/use/css/order/use_and_import.hrx @@ -83,7 +83,6 @@ a {file: imported} @import "imported.css"; @import "used.css"; @import "input.css"; - a { file: imported; } @@ -92,6 +91,16 @@ a { file: used; } +<===> use_into_import/css_import_above_rule/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> use_into_import/css_import_below_rule/input.scss @@ -115,7 +124,6 @@ a {file: imported} @import "imported.css"; @import "used.css"; @import "input.css"; - a { file: imported; } @@ -124,6 +132,16 @@ a { file: used; } +<===> use_into_import/css_import_below_rule/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> use_into_import/sass_import_below_css_import/input.scss @@ -144,6 +162,16 @@ a { @import "imported.css"; @import "input.css"; +<===> use_into_import/sass_import_below_css_import/warning +DEPRECATION WARNING on line 3, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> import_into_use/css_import_above_rule/input.scss @@ -167,7 +195,6 @@ a {file: used} @import "used.css"; @import "imported.css"; @import "input.css"; - a { file: used; } @@ -176,6 +203,16 @@ a { file: imported; } +<===> import_into_use/css_import_above_rule/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> import_into_use/css_import_below_rule/input.scss @@ -199,7 +236,6 @@ a {file: used} @import "used.css"; @import "imported.css"; @import "input.css"; - a { file: used; } @@ -208,6 +244,16 @@ a { file: imported; } +<===> import_into_use/css_import_below_rule/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> import_into_use/sass_import_below_css_import/input.scss @@ -228,6 +274,16 @@ a { @import "used.css"; @import "imported.css"; +<===> import_into_use/sass_import_below_css_import/warning +DEPRECATION WARNING on line 3, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> comments_and_imports/input.scss diff --git a/spec/directives/use/error/load.hrx b/spec/directives/use/error/load.hrx index 97d3f4d449..106a591e2b 100644 --- a/spec/directives/use/error/load.hrx +++ b/spec/directives/use/error/load.hrx @@ -206,6 +206,15 @@ Error: Module loop: this module is already being loaded. @import "input"; <===> loop/use_to_import/error +DEPRECATION WARNING on line 1, column 9 of other.scss: +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 "input"; + | ^^^^^^^ + ' + Error: This file is already being loaded. , 1 | @import "input"; @@ -223,6 +232,15 @@ Error: This file is already being loaded. @use "input"; <===> loop/import_to_use/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^ + ' + Error: Module loop: this module is already being loaded. , 1 | @use "input"; diff --git a/spec/directives/use/error/member/inaccessible.hrx b/spec/directives/use/error/member/inaccessible.hrx index 81c7964e63..5dfa5de35e 100644 --- a/spec/directives/use/error/member/inaccessible.hrx +++ b/spec/directives/use/error/member/inaccessible.hrx @@ -72,6 +72,15 @@ a {b: $upstream}; $upstream: value; <===> transitive_from_import/variable/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + Error: Undefined variable. , 3 | a {b: $upstream}; @@ -99,6 +108,16 @@ a { b: upstream(); } +<===> transitive_from_import/function/warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + <===> ================================================================================ <===> transitive_from_import/mixin/input.scss @@ -113,6 +132,15 @@ a { @mixin upstream {a {b: c}} <===> transitive_from_import/mixin/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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"; + | ^^^^^^^^^^^ + ' + Error: Undefined mixin. , 3 | @include upstream; diff --git a/spec/directives/use/error/syntax/after.hrx b/spec/directives/use/error/syntax/after.hrx index 6596ed5069..47ee838e42 100644 --- a/spec/directives/use/error/syntax/after.hrx +++ b/spec/directives/use/error/syntax/after.hrx @@ -31,6 +31,15 @@ Error: @use rules must be written before any other rules. @use "other2"; <===> at_rule/import/error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "other1"; + | ^^^^^^^^ + ' + Error: @use rules must be written before any other rules. , 2 | @use "other2"; diff --git a/spec/directives/use/extend/scope.hrx b/spec/directives/use/extend/scope.hrx index 7e3932306a..bcfb65f76e 100644 --- a/spec/directives/use/extend/scope.hrx +++ b/spec/directives/use/extend/scope.hrx @@ -120,6 +120,16 @@ shared, in-imported { x: y; } +<===> use_into_use_and_import_into_use/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> use_into_use_and_import_into_import/input.scss @@ -151,6 +161,25 @@ shared, in-imported { x: y; } +<===> use_into_use_and_import_into_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _imported.scss: +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 "shared"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> use_into_use_and_use_into_import/input.scss @@ -182,6 +211,16 @@ shared, in-importer { x: y; } +<===> use_into_use_and_use_into_import/warning +DEPRECATION WARNING on line 1, column 9 of _importer.scss: +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 "shared"; + | ^^^^^^^^ + ' + <===> ================================================================================ <===> use_into_use_and_use_into_import_into_use/input.scss @@ -216,6 +255,16 @@ shared, in-used { x: y; } +<===> use_into_use_and_use_into_import_into_use/warning +DEPRECATION WARNING on line 1, column 9 of _importer.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> use_and_import_into_diamond_extend/input.scss @@ -262,6 +311,25 @@ in-shared, right-extendee, left-extendee { x: y; } +<===> use_and_import_into_diamond_extend/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "downstream"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 3, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> isolated_through_import/input.scss @@ -295,3 +363,13 @@ in-shared, right-extendee, left-extendee { .in-shared, .in-used-by-imported { a: b; } + +<===> isolated_through_import/warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "imported"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/use/member/nested_global_variable.hrx b/spec/directives/use/member/nested_global_variable.hrx index 41b9f8ebd9..d07a16f7e5 100644 --- a/spec/directives/use/member/nested_global_variable.hrx +++ b/spec/directives/use/member/nested_global_variable.hrx @@ -46,3 +46,13 @@ x { a { b: null; } + +<===> through_import/warning +DEPRECATION WARNING on line 1, column 9 of used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/use/member/use_to_import.hrx b/spec/directives/use/member/use_to_import.hrx index 985d6bb0a4..5aafd51076 100644 --- a/spec/directives/use/member/use_to_import.hrx +++ b/spec/directives/use/member/use_to_import.hrx @@ -14,6 +14,16 @@ a { b: value; } +<===> variable_use/warning +DEPRECATION WARNING on line 1, column 9 of midstream.scss: +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"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> variable_assignment/input.scss @@ -36,6 +46,16 @@ a { b: new value; } +<===> variable_assignment/warning +DEPRECATION WARNING on line 1, column 9 of midstream.scss: +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"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> function/input.scss @@ -54,6 +74,16 @@ a { b: value; } +<===> function/warning +DEPRECATION WARNING on line 1, column 9 of midstream.scss: +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"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> mixin/input.scss @@ -71,3 +101,13 @@ a { a { b: c; } + +<===> mixin/warning +DEPRECATION WARNING on line 1, column 9 of midstream.scss: +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"; + | ^^^^^^^^^^ + ' diff --git a/spec/directives/use/with/through_import.hrx b/spec/directives/use/with/through_import.hrx index f98c661c40..60abbcf6cd 100644 --- a/spec/directives/use/with/through_import.hrx +++ b/spec/directives/use/with/through_import.hrx @@ -13,6 +13,16 @@ b { c: configured; } +<===> direct/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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 "imported"; + | ^^^^^^^^^^ + ' + <===> ================================================================================ <===> transitive/input.scss @@ -32,3 +42,22 @@ b {c: $a} b { c: configured; } + +<===> transitive/warning +DEPRECATION WARNING on line 1, column 9 of _used.scss: +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"; + | ^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _midstream.scss: +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"; + | ^^^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_1075.hrx b/spec/libsass-closed-issues/issue_1075.hrx index 93d957d2f0..24a68544f4 100644 --- a/spec/libsass-closed-issues/issue_1075.hrx +++ b/spec/libsass-closed-issues/issue_1075.hrx @@ -22,6 +22,17 @@ Recommendation: call(get-function("lighten")) ' input.scss 5:8 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +5 | bar: meta.call($name, $args...); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 5:8 root stylesheet + DEPRECATION WARNING: lighten() is deprecated. Suggestions: color.scale($color, $lightness: 20%) diff --git a/spec/libsass-closed-issues/issue_1081.hrx b/spec/libsass-closed-issues/issue_1081.hrx index 857e8edb6e..886138d736 100644 --- a/spec/libsass-closed-issues/issue_1081.hrx +++ b/spec/libsass-closed-issues/issue_1081.hrx @@ -39,6 +39,15 @@ after import-after { } <===> warning +DEPRECATION WARNING on line 10, column 11 of input.scss: +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 + , +10 | @import "import"; + | ^^^^^^^^ + ' + DEPRECATION WARNING: As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables. Since this assignment is at the root of the stylesheet, the !global flag is diff --git a/spec/libsass-closed-issues/issue_1103.hrx b/spec/libsass-closed-issues/issue_1103.hrx index 837389f569..76c1cdffd5 100644 --- a/spec/libsass-closed-issues/issue_1103.hrx +++ b/spec/libsass-closed-issues/issue_1103.hrx @@ -32,7 +32,6 @@ baz { foo { bar: baz; } - baz { bar: foo; } @@ -41,7 +40,6 @@ baz { foo { bar: baz; } - baz { bar: foo; } @@ -50,7 +48,6 @@ baz { foo { bar: baz; } - baz { bar: foo; } @@ -59,8 +56,26 @@ baz { foo { bar: baz; } - baz { bar: foo; } } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "import"; + | ^^^^^^^^ + ' + +DEPRECATION WARNING on line 9, column 13 of input.scss: +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 + , +9 | @import "import"; + | ^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_1266/max.hrx b/spec/libsass-closed-issues/issue_1266/max.hrx index 037543aef1..fbc38242bb 100644 --- a/spec/libsass-closed-issues/issue_1266/max.hrx +++ b/spec/libsass-closed-issues/issue_1266/max.hrx @@ -16,6 +16,17 @@ Recommendation: call(get-function(max)) ' input.scss 4:8 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.max instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | bar: meta.call(max, $foo...); + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 4:8 root stylesheet + Error: blah is not a number. , 4 | bar: meta.call(max, $foo...); diff --git a/spec/libsass-closed-issues/issue_1266/min.hrx b/spec/libsass-closed-issues/issue_1266/min.hrx index ceb02582e5..69c94f74fc 100644 --- a/spec/libsass-closed-issues/issue_1266/min.hrx +++ b/spec/libsass-closed-issues/issue_1266/min.hrx @@ -16,6 +16,17 @@ Recommendation: call(get-function(min)) ' input.scss 4:8 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.min instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +4 | bar: meta.call(min, $foo...); + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 4:8 root stylesheet + Error: blah is not a number. , 4 | bar: meta.call(min, $foo...); diff --git a/spec/libsass-closed-issues/issue_1305.hrx b/spec/libsass-closed-issues/issue_1305.hrx index 29e885c9f3..5b79330e63 100644 --- a/spec/libsass-closed-issues/issue_1305.hrx +++ b/spec/libsass-closed-issues/issue_1305.hrx @@ -19,3 +19,14 @@ Recommendation: call(get-function("unquote")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ' input.scss 3:14 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | content: meta.call('unquote', 'foo', ()...); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 3:14 root stylesheet diff --git a/spec/libsass-closed-issues/issue_1766.hrx b/spec/libsass-closed-issues/issue_1766.hrx index 3b71015b88..43eb5953fd 100644 --- a/spec/libsass-closed-issues/issue_1766.hrx +++ b/spec/libsass-closed-issues/issue_1766.hrx @@ -16,3 +16,22 @@ foo { bar: baz } bar: baz; } } + +<===> warning +DEPRECATION WARNING on line 1, column 22 of input.scss: +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 | @media all { @import "foo.scss" } + | ^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 22 of input.scss: +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 | @media all { @import "foo.scss"; } + | ^^^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_1801/import-cycle.hrx b/spec/libsass-closed-issues/issue_1801/import-cycle.hrx index 551d2d69cf..9dbb41351b 100644 --- a/spec/libsass-closed-issues/issue_1801/import-cycle.hrx +++ b/spec/libsass-closed-issues/issue_1801/import-cycle.hrx @@ -8,6 +8,33 @@ @import 'alpha'; <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 'alpha'; + | ^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _alpha.scss: +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 'beta'; + | ^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _beta.scss: +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 'alpha'; + | ^^^^^^^ + ' + Error: This file is already being loaded. ,--> _beta.scss 1 | @import 'alpha'; diff --git a/spec/libsass-closed-issues/issue_2106/test.hrx b/spec/libsass-closed-issues/issue_2106/test.hrx index 1b9c878207..10f1f74d87 100644 --- a/spec/libsass-closed-issues/issue_2106/test.hrx +++ b/spec/libsass-closed-issues/issue_2106/test.hrx @@ -2,6 +2,15 @@ @import "../does-not-exist"; <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "../does-not-exist"; + | ^^^^^^^^^^^^^^^^^^^ + ' + Error: Can't find stylesheet to import. , 1 | @import "../does-not-exist"; diff --git a/spec/libsass-closed-issues/issue_2233.hrx b/spec/libsass-closed-issues/issue_2233.hrx index b15a6000ba..2bf27864d5 100644 --- a/spec/libsass-closed-issues/issue_2233.hrx +++ b/spec/libsass-closed-issues/issue_2233.hrx @@ -12,3 +12,13 @@ a { b: c; } b: c; } } + +<===> warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 "foo" + | ^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_2295/basic.hrx b/spec/libsass-closed-issues/issue_2295/basic.hrx index a8de98ff8b..79f21aa3d6 100644 --- a/spec/libsass-closed-issues/issue_2295/basic.hrx +++ b/spec/libsass-closed-issues/issue_2295/basic.hrx @@ -10,3 +10,13 @@ .my-scope .foo { display: none; } + +<===> warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 'include.scss'; + | ^^^^^^^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_2295/original.hrx b/spec/libsass-closed-issues/issue_2295/original.hrx index 30f519ba95..8ba413c088 100644 --- a/spec/libsass-closed-issues/issue_2295/original.hrx +++ b/spec/libsass-closed-issues/issue_2295/original.hrx @@ -26,3 +26,13 @@ $include-foo: true !default; .my-scope .foo { display: none; } + +<===> warning +DEPRECATION WARNING on line 7, column 11 of input.scss: +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 + , +7 | @import 'input-bug'; + | ^^^^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_2303.hrx b/spec/libsass-closed-issues/issue_2303.hrx index 7f7b3ef90c..2dab906ca1 100644 --- a/spec/libsass-closed-issues/issue_2303.hrx +++ b/spec/libsass-closed-issues/issue_2303.hrx @@ -19,3 +19,13 @@ .wrapper-class .broken { background: red; } + +<===> warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 'module'; + | ^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_2304.hrx b/spec/libsass-closed-issues/issue_2304.hrx index f98e47d8d3..63c711c2b2 100644 --- a/spec/libsass-closed-issues/issue_2304.hrx +++ b/spec/libsass-closed-issues/issue_2304.hrx @@ -9,6 +9,15 @@ background: red; } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "module"; + | ^^^^^^^^ + ' + Error: Top-level selectors may not contain the parent selector "&". , 1 | .foo, & { diff --git a/spec/libsass-closed-issues/issue_2472.hrx b/spec/libsass-closed-issues/issue_2472.hrx index cb87762567..39a472cf54 100644 --- a/spec/libsass-closed-issues/issue_2472.hrx +++ b/spec/libsass-closed-issues/issue_2472.hrx @@ -31,6 +31,28 @@ $arg: join((), 5%); } <===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.join instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +14 | $arg: join((), 5%); + | ^^^^^^^^^^^^ + ' + input.scss 14:7 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +17 | direct: darken(#102030, 5%); + | ^^^^^^^^^^^^^^^^^^^ + ' + input.scss 17:11 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -39.84375%) @@ -44,6 +66,17 @@ More info: https://sass-lang.com/d/color-functions ' input.scss 17:11 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +18 | arg: darken(#102030, $arg...); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 18:8 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -39.84375%) @@ -57,6 +90,17 @@ More info: https://sass-lang.com/d/color-functions ' input.scss 18:8 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.call instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +19 | call: call('darken', #102030, $arg...); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 19:9 root stylesheet + DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0. Recommendation: call(get-function("darken")) @@ -67,6 +111,17 @@ Recommendation: call(get-function("darken")) ' input.scss 19:9 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +19 | call: call('darken', #102030, $arg...); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 19:9 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -39.84375%) @@ -80,6 +135,18 @@ More info: https://sass-lang.com/d/color-functions ' input.scss 19:9 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.call instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +5 | @return call('darken', $color, $args...); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 5:11 dark() + input.scss 20:13 root stylesheet + DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0. Recommendation: call(get-function("darken")) @@ -91,6 +158,18 @@ Recommendation: call(get-function("darken")) input.scss 5:11 dark() input.scss 20:13 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +5 | @return call('darken', $color, $args...); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 5:11 dark() + input.scss 20:13 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -39.84375%) @@ -105,6 +184,18 @@ More info: https://sass-lang.com/d/color-functions input.scss 5:11 dark() input.scss 20:13 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.call instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +11 | @return call('darken', $args...); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 11:11 dark2() + input.scss 21:14 root stylesheet + DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0. Recommendation: call(get-function("darken")) @@ -116,6 +207,18 @@ Recommendation: call(get-function("darken")) input.scss 11:11 dark2() input.scss 21:14 root stylesheet +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.adjust instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +11 | @return call('darken', $args...); + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 11:11 dark2() + input.scss 21:14 root stylesheet + DEPRECATION WARNING: darken() is deprecated. Suggestions: color.scale($color, $lightness: -39.84375%) diff --git a/spec/libsass-closed-issues/issue_279.hrx b/spec/libsass-closed-issues/issue_279.hrx index 28845843fb..8c123a76bf 100644 --- a/spec/libsass-closed-issues/issue_279.hrx +++ b/spec/libsass-closed-issues/issue_279.hrx @@ -16,3 +16,13 @@ .theme .test-hello, .theme .test-world { color: red; } + +<===> warning +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 "foo.scss"; + | ^^^^^^^^^^ + ' diff --git a/spec/libsass-closed-issues/issue_456.hrx b/spec/libsass-closed-issues/issue_456.hrx index 0ddfe4880b..84bca937d6 100644 --- a/spec/libsass-closed-issues/issue_456.hrx +++ b/spec/libsass-closed-issues/issue_456.hrx @@ -7,3 +7,15 @@ body { body { -webkit-filter: invert(100%); } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use color.invert instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | -webkit-filter: invert(100%); + | ^^^^^^^^^^^^ + ' + input.scss 2:19 root stylesheet diff --git a/spec/libsass-todo-issues/issue_1763.hrx b/spec/libsass-todo-issues/issue_1763.hrx index 000f1619ab..a27b93f920 100644 --- a/spec/libsass-todo-issues/issue_1763.hrx +++ b/spec/libsass-todo-issues/issue_1763.hrx @@ -15,3 +15,13 @@ a { b: c } foo { bar: baz; } + +<===> warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "first.scss", "second.scss" (max-width: 400px); + | ^^^^^^^^^^^^ + ' diff --git a/spec/libsass-todo-issues/issue_1801/simple-import-loop.hrx b/spec/libsass-todo-issues/issue_1801/simple-import-loop.hrx index c7edf02307..dd2528a38c 100644 --- a/spec/libsass-todo-issues/issue_1801/simple-import-loop.hrx +++ b/spec/libsass-todo-issues/issue_1801/simple-import-loop.hrx @@ -5,6 +5,24 @@ @import 'susy'; <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 'susy'; + | ^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 9 of _susy.scss: +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 'susy'; + | ^^^^^^ + ' + Error: This file is already being loaded. ,--> _susy.scss 1 | @import 'susy'; diff --git a/spec/libsass-todo-issues/issue_2295/error/basic.hrx b/spec/libsass-todo-issues/issue_2295/error/basic.hrx index 7091fcdd35..a619f4f3a0 100644 --- a/spec/libsass-todo-issues/issue_2295/error/basic.hrx +++ b/spec/libsass-todo-issues/issue_2295/error/basic.hrx @@ -6,9 +6,18 @@ display: none; <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 'include.scss'; + | ^^^^^^^^^^^^^^ + ' + Error: expected "{". , -1 | display: none; +1 | display: none; | ^ ' include.scss 1:14 @import diff --git a/spec/libsass-todo-issues/issue_2295/error/wrapped.hrx b/spec/libsass-todo-issues/issue_2295/error/wrapped.hrx index e00f73d386..2b47b95ed1 100644 --- a/spec/libsass-todo-issues/issue_2295/error/wrapped.hrx +++ b/spec/libsass-todo-issues/issue_2295/error/wrapped.hrx @@ -7,9 +7,18 @@ display: none; } <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 'include.scss'; + | ^^^^^^^^^^^^^^ + ' + Error: expected "{". , -2 | display: none; +2 | display: none; | ^ ' include.scss 2:16 @import diff --git a/spec/libsass/base-level-parent/imported/at-root-alone-itpl.hrx b/spec/libsass/base-level-parent/imported/at-root-alone-itpl.hrx index b5694e8f8a..845831f759 100644 --- a/spec/libsass/base-level-parent/imported/at-root-alone-itpl.hrx +++ b/spec/libsass/base-level-parent/imported/at-root-alone-itpl.hrx @@ -10,6 +10,15 @@ } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: expected selector. , 2 | #{&} { diff --git a/spec/libsass/base-level-parent/imported/at-root-alone.hrx b/spec/libsass/base-level-parent/imported/at-root-alone.hrx index 8d574c0f4d..b14e4a7356 100644 --- a/spec/libsass/base-level-parent/imported/at-root-alone.hrx +++ b/spec/libsass/base-level-parent/imported/at-root-alone.hrx @@ -9,6 +9,15 @@ } } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: Top-level selectors may not contain the parent selector "&". , 2 | & { diff --git a/spec/libsass/base-level-parent/imported/at-root-postfix-itpl.hrx b/spec/libsass/base-level-parent/imported/at-root-postfix-itpl.hrx index 6f38ae56c5..68368741d4 100644 --- a/spec/libsass/base-level-parent/imported/at-root-postfix-itpl.hrx +++ b/spec/libsass/base-level-parent/imported/at-root-postfix-itpl.hrx @@ -13,3 +13,13 @@ post foo { bar: baz; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' diff --git a/spec/libsass/base-level-parent/imported/at-root-postfix.hrx b/spec/libsass/base-level-parent/imported/at-root-postfix.hrx index 67710710cb..c1d0e1968f 100644 --- a/spec/libsass/base-level-parent/imported/at-root-postfix.hrx +++ b/spec/libsass/base-level-parent/imported/at-root-postfix.hrx @@ -9,6 +9,15 @@ } } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: Top-level selectors may not contain the parent selector "&". , 2 | &post { diff --git a/spec/libsass/base-level-parent/imported/at-root-prefix-itpl.hrx b/spec/libsass/base-level-parent/imported/at-root-prefix-itpl.hrx index d8236ab955..7e35db9017 100644 --- a/spec/libsass/base-level-parent/imported/at-root-prefix-itpl.hrx +++ b/spec/libsass/base-level-parent/imported/at-root-prefix-itpl.hrx @@ -13,3 +13,13 @@ pre foo { bar: baz; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' diff --git a/spec/libsass/base-level-parent/imported/at-root-prefix.hrx b/spec/libsass/base-level-parent/imported/at-root-prefix.hrx index d88b57cec7..234d34b4f4 100644 --- a/spec/libsass/base-level-parent/imported/at-root-prefix.hrx +++ b/spec/libsass/base-level-parent/imported/at-root-prefix.hrx @@ -9,6 +9,15 @@ } } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: "&" may only used at the beginning of a compound selector. , 2 | pre& { diff --git a/spec/libsass/base-level-parent/imported/basic-alone-itpl.hrx b/spec/libsass/base-level-parent/imported/basic-alone-itpl.hrx index 411eb6f74f..9347d89d92 100644 --- a/spec/libsass/base-level-parent/imported/basic-alone-itpl.hrx +++ b/spec/libsass/base-level-parent/imported/basic-alone-itpl.hrx @@ -8,6 +8,15 @@ } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: expected selector. , 1 | #{&} { diff --git a/spec/libsass/base-level-parent/imported/basic-alone.hrx b/spec/libsass/base-level-parent/imported/basic-alone.hrx index e71ce731cf..9ade00457d 100644 --- a/spec/libsass/base-level-parent/imported/basic-alone.hrx +++ b/spec/libsass/base-level-parent/imported/basic-alone.hrx @@ -8,6 +8,15 @@ } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: Top-level selectors may not contain the parent selector "&". , 1 | & { diff --git a/spec/libsass/base-level-parent/imported/basic-postfix-itpl.hrx b/spec/libsass/base-level-parent/imported/basic-postfix-itpl.hrx index 9e5e73a93a..45a73e507e 100644 --- a/spec/libsass/base-level-parent/imported/basic-postfix-itpl.hrx +++ b/spec/libsass/base-level-parent/imported/basic-postfix-itpl.hrx @@ -11,3 +11,13 @@ post foo { bar: baz; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' diff --git a/spec/libsass/base-level-parent/imported/basic-postfix.hrx b/spec/libsass/base-level-parent/imported/basic-postfix.hrx index cfaf2cd7f5..f11595bdd6 100644 --- a/spec/libsass/base-level-parent/imported/basic-postfix.hrx +++ b/spec/libsass/base-level-parent/imported/basic-postfix.hrx @@ -7,6 +7,15 @@ } } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: Top-level selectors may not contain the parent selector "&". , 1 | &post { diff --git a/spec/libsass/base-level-parent/imported/basic-prefix-itpl.hrx b/spec/libsass/base-level-parent/imported/basic-prefix-itpl.hrx index 1ea2ef4d63..575f41320e 100644 --- a/spec/libsass/base-level-parent/imported/basic-prefix-itpl.hrx +++ b/spec/libsass/base-level-parent/imported/basic-prefix-itpl.hrx @@ -11,3 +11,13 @@ pre#{&} { pre foo { bar: baz; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' diff --git a/spec/libsass/base-level-parent/imported/basic-prefix.hrx b/spec/libsass/base-level-parent/imported/basic-prefix.hrx index 41a4a999c4..2d95948dc4 100644 --- a/spec/libsass/base-level-parent/imported/basic-prefix.hrx +++ b/spec/libsass/base-level-parent/imported/basic-prefix.hrx @@ -7,6 +7,15 @@ pre& { } } <===> error +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "include.scss"; + | ^^^^^^^^^^^^^^ + ' + Error: "&" may only used at the beginning of a compound selector. , 1 | pre& { diff --git a/spec/libsass/bourbon.hrx b/spec/libsass/bourbon.hrx index 33b675db8e..78b89873dd 100644 --- a/spec/libsass/bourbon.hrx +++ b/spec/libsass/bourbon.hrx @@ -1930,3 +1930,747 @@ div { background-image: -webkit-url("/images/a.png")-gradient(center), -webkit-url("images/b.png")-gradient(left); background-image: url("/images/a.png")-gradient( center), url("images/b.png")-gradient( left); } + +<===> warning +DEPRECATION WARNING on line 2, column 9 of input.scss: +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 "lib/_bourbon.scss"; + | ^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 2, column 9 of lib/_bourbon.scss: +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 "helpers/deprecated-webkit-gradient"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 3, column 9 of lib/_bourbon.scss: +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 "helpers/gradient-positions-parser"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 4, column 9 of lib/_bourbon.scss: +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 "helpers/linear-positions-parser"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 5, column 9 of lib/_bourbon.scss: +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 "helpers/radial-arg-parser"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 6, column 9 of lib/_bourbon.scss: +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 + , +6 | @import "helpers/radial-positions-parser"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 7, column 9 of lib/_bourbon.scss: +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 + , +7 | @import "helpers/render-gradients"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 8, column 9 of lib/_bourbon.scss: +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 + , +8 | @import "helpers/shape-size-stripper"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 11, column 9 of lib/_bourbon.scss: +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 + , +11 | @import "functions/compact"; + | ^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 12, column 9 of lib/_bourbon.scss: +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 + , +12 | @import "functions/flex-grid"; + | ^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 13, column 9 of lib/_bourbon.scss: +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 + , +13 | @import "functions/grid-width"; + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 14, column 9 of lib/_bourbon.scss: +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 + , +14 | @import "functions/linear-gradient"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 15, column 9 of lib/_bourbon.scss: +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 + , +15 | @import "functions/modular-scale"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 16, column 9 of lib/_bourbon.scss: +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 + , +16 | @import "functions/px-to-em"; + | ^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 17, column 9 of lib/_bourbon.scss: +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 + , +17 | @import "functions/radial-gradient"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 18, column 9 of lib/_bourbon.scss: +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 + , +18 | @import "functions/tint-shade"; + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 19, column 9 of lib/_bourbon.scss: +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 + , +19 | @import "functions/transition-property-name"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 22, column 9 of lib/_bourbon.scss: +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 + , +22 | @import "css3/animation"; + | ^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 23, column 9 of lib/_bourbon.scss: +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 + , +23 | @import "css3/appearance"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 24, column 9 of lib/_bourbon.scss: +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 + , +24 | @import "css3/backface-visibility"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 25, column 9 of lib/_bourbon.scss: +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 + , +25 | @import "css3/background"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 26, column 9 of lib/_bourbon.scss: +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 + , +26 | @import "css3/background-image"; + | ^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 27, column 9 of lib/_bourbon.scss: +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 + , +27 | @import "css3/border-image"; + | ^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 28, column 9 of lib/_bourbon.scss: +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 + , +28 | @import "css3/border-radius"; + | ^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 29, column 9 of lib/_bourbon.scss: +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 + , +29 | @import "css3/box-sizing"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 30, column 9 of lib/_bourbon.scss: +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 + , +30 | @import "css3/columns"; + | ^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 31, column 9 of lib/_bourbon.scss: +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 + , +31 | @import "css3/flex-box"; + | ^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 32, column 9 of lib/_bourbon.scss: +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 + , +32 | @import "css3/font-face"; + | ^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 33, column 9 of lib/_bourbon.scss: +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 + , +33 | @import "css3/hidpi-media-query"; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 34, column 9 of lib/_bourbon.scss: +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 + , +34 | @import "css3/image-rendering"; + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 35, column 9 of lib/_bourbon.scss: +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 + , +35 | @import "css3/inline-block"; + | ^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 36, column 9 of lib/_bourbon.scss: +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 + , +36 | @import "css3/keyframes"; + | ^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 37, column 9 of lib/_bourbon.scss: +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 + , +37 | @import "css3/linear-gradient"; + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 38, column 9 of lib/_bourbon.scss: +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 + , +38 | @import "css3/perspective"; + | ^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 39, column 9 of lib/_bourbon.scss: +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 + , +39 | @import "css3/radial-gradient"; + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 40, column 9 of lib/_bourbon.scss: +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 + , +40 | @import "css3/transform"; + | ^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 41, column 9 of lib/_bourbon.scss: +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 + , +41 | @import "css3/transition"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 42, column 9 of lib/_bourbon.scss: +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 + , +42 | @import "css3/user-select"; + | ^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 43, column 9 of lib/_bourbon.scss: +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 + , +43 | @import "css3/placeholder"; + | ^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 46, column 9 of lib/_bourbon.scss: +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 + , +46 | @import "addons/button"; + | ^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 47, column 9 of lib/_bourbon.scss: +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 + , +47 | @import "addons/clearfix"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 48, column 9 of lib/_bourbon.scss: +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 + , +48 | @import "addons/font-family"; + | ^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 49, column 9 of lib/_bourbon.scss: +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 + , +49 | @import "addons/hide-text"; + | ^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 50, column 9 of lib/_bourbon.scss: +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 + , +50 | @import "addons/html5-input-types"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 51, column 9 of lib/_bourbon.scss: +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 + , +51 | @import "addons/position"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 52, column 9 of lib/_bourbon.scss: +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 + , +52 | @import "addons/prefixer"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 53, column 9 of lib/_bourbon.scss: +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 + , +53 | @import "addons/retina-image"; + | ^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 54, column 9 of lib/_bourbon.scss: +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 + , +54 | @import "addons/size"; + | ^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 55, column 9 of lib/_bourbon.scss: +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 + , +55 | @import "addons/timing-functions"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 56, column 9 of lib/_bourbon.scss: +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 + , +56 | @import "addons/triangle"; + | ^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 59, column 9 of lib/_bourbon.scss: +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 + , +59 | @import "bourbon-deprecated-upcoming"; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +25 | $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma); + | ^^^^^^^^^^^^^^^^^^^^ + ' + lib/addons/_html5-input-types.scss 25:56 @import + lib/_bourbon.scss 50:9 @import + input.scss 2:9 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.append instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +25 | $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/addons/_html5-input-types.scss 25:26 @import + lib/_bourbon.scss 50:9 @import + input.scss 2:9 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.append instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +36 | $all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/addons/_html5-input-types.scss 36:31 @import + lib/_bourbon.scss 50:9 @import + input.scss 2:9 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.append instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +44 | $all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/addons/_html5-input-types.scss 44:31 @import + lib/_bourbon.scss 50:9 @import + input.scss 2:9 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.length instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +14 | @for $i from 1 through length($images) { + | ^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 14:26 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 19:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +15 | $type: type-of(nth($images, $i)); // Get type of variable - List or String + | ^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 15:20 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 19:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.type-of instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +15 | $type: type-of(nth($images, $i)); // Get type of variable - List or String + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 15:12 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 19:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +37 | $images-prefixed: join($images-prefixed, nth($images, $i), comma); + | ^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 37:48 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 19:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.join instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +37 | $images-prefixed: join($images-prefixed, nth($images, $i), comma); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 37:25 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 19:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | $pos-type: type-of(nth($pos, 1)); + | ^^^^^^^^^^^^ + ' + lib/functions/_linear-gradient.scss 3:22 linear-gradient() + input.scss 22:51 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use meta.type-of instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +3 | $pos-type: type-of(nth($pos, 1)); + | ^^^^^^^^^^^^^^^^^^^^^ + ' + lib/functions/_linear-gradient.scss 3:14 linear-gradient() + input.scss 22:51 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.zip instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +7 | $gradients: zip($pos $gradients); + | ^^^^^^^^^^^^^^^^^^^^ + ' + lib/functions/_linear-gradient.scss 7:17 linear-gradient() + input.scss 22:51 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +19 | $gradient-type: nth(nth($images, $i), 1); // linear or radial + | ^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 19:27 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +19 | $gradient-type: nth(nth($images, $i), 1); // linear or radial + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 19:23 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +24 | $gradient-pos: nth(nth($images, $i), 2); // Get gradient position + | ^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 24:29 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +24 | $gradient-pos: nth(nth($images, $i), 2); // Get gradient position + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 24:25 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +25 | $gradient-args: nth(nth($images, $i), 3); // Get actual gradient (red, blue) + | ^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 25:29 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +25 | $gradient-args: nth(nth($images, $i), 3); // Get actual gradient (red, blue) + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 25:25 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.append instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +33 | $images-prefixed: append($images-prefixed, $gradient, comma); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 33:25 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +23 | $vendor-gradients: unquote($vendor-gradients); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/helpers/_render-gradients.scss 23:24 -render-gradients() + lib/css3/_background-image.scss 32:18 -add-prefix() + lib/css3/_background-image.scss 8:21 background-image() + input.scss 22:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +28 | $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue) + | ^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 28:29 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 29:3 root stylesheet + +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.nth instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +28 | $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue) + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + lib/css3/_background-image.scss 28:25 -add-prefix() + lib/css3/_background-image.scss 7:21 background-image() + input.scss 29:3 root stylesheet diff --git a/spec/non_conformant/basic/14_imports.hrx b/spec/non_conformant/basic/14_imports.hrx index 719cc48fea..238188c3b0 100644 --- a/spec/non_conformant/basic/14_imports.hrx +++ b/spec/non_conformant/basic/14_imports.hrx @@ -56,3 +56,40 @@ foo blux { hey: another thing; ho: will this work; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "a.scss"; + | ^^^^^^^^ + ' + +DEPRECATION WARNING on line 7, column 13 of input.scss: +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 + , +7 | @import "../14_imports/b.scss"; + | ^^^^^^^^^^^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 10, column 11 of input.scss: +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 + , +10 | @import "sub/c.scss"; + | ^^^^^^^^^^^^ + ' + +DEPRECATION WARNING on line 4, column 11 of b.scss: +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 "d.scss"; + | ^^^^^^^^ + ' diff --git a/spec/non_conformant/errors/import/file/control-else.hrx b/spec/non_conformant/errors/import/file/control-else.hrx index a3f9ab04ae..1b55e27d7d 100644 --- a/spec/non_conformant/errors/import/file/control-else.hrx +++ b/spec/non_conformant/errors/import/file/control-else.hrx @@ -7,9 +7,18 @@ <===> _include.scss <===> error +DEPRECATION WARNING on line 3, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -3 | @import '_include'; +3 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 3:3 root stylesheet diff --git a/spec/non_conformant/errors/import/file/control-if.hrx b/spec/non_conformant/errors/import/file/control-if.hrx index b70d8b68fc..5003805172 100644 --- a/spec/non_conformant/errors/import/file/control-if.hrx +++ b/spec/non_conformant/errors/import/file/control-if.hrx @@ -6,9 +6,18 @@ <===> _include.scss <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/file/loop/each.hrx b/spec/non_conformant/errors/import/file/loop/each.hrx index f6c4a13deb..041d61c126 100644 --- a/spec/non_conformant/errors/import/file/loop/each.hrx +++ b/spec/non_conformant/errors/import/file/loop/each.hrx @@ -6,9 +6,18 @@ <===> _include.scss <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/file/loop/for.hrx b/spec/non_conformant/errors/import/file/loop/for.hrx index 59498467ea..396c88d7ae 100644 --- a/spec/non_conformant/errors/import/file/loop/for.hrx +++ b/spec/non_conformant/errors/import/file/loop/for.hrx @@ -6,9 +6,18 @@ <===> _include.scss <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/file/loop/while.hrx b/spec/non_conformant/errors/import/file/loop/while.hrx index 18d62ed9ed..577e03ea91 100644 --- a/spec/non_conformant/errors/import/file/loop/while.hrx +++ b/spec/non_conformant/errors/import/file/loop/while.hrx @@ -8,9 +8,18 @@ $count: 0; <===> _include.scss <===> error +DEPRECATION WARNING on line 3, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -3 | @import '_include'; +3 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 3:3 root stylesheet diff --git a/spec/non_conformant/errors/import/file/mixin/control-else/inside.hrx b/spec/non_conformant/errors/import/file/mixin/control-else/inside.hrx index 3dc0bbaae1..980b9078e0 100644 --- a/spec/non_conformant/errors/import/file/mixin/control-else/inside.hrx +++ b/spec/non_conformant/errors/import/file/mixin/control-else/inside.hrx @@ -12,9 +12,18 @@ foo { <===> _include.scss <===> error +DEPRECATION WARNING on line 4, column 13 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -4 | @import '_include'; +4 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 4:5 root stylesheet diff --git a/spec/non_conformant/errors/import/file/mixin/control-else/outside.hrx b/spec/non_conformant/errors/import/file/mixin/control-else/outside.hrx index 16516176a9..7a0bd7b1bd 100644 --- a/spec/non_conformant/errors/import/file/mixin/control-else/outside.hrx +++ b/spec/non_conformant/errors/import/file/mixin/control-else/outside.hrx @@ -11,9 +11,18 @@ <===> _include.scss <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/file/mixin/control-if/inside.hrx b/spec/non_conformant/errors/import/file/mixin/control-if/inside.hrx index 9c1a925572..110ac5eb37 100644 --- a/spec/non_conformant/errors/import/file/mixin/control-if/inside.hrx +++ b/spec/non_conformant/errors/import/file/mixin/control-if/inside.hrx @@ -11,9 +11,18 @@ foo { <===> _include.scss <===> error +DEPRECATION WARNING on line 3, column 13 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -3 | @import '_include'; +3 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 3:5 root stylesheet diff --git a/spec/non_conformant/errors/import/file/mixin/control-if/outside.hrx b/spec/non_conformant/errors/import/file/mixin/control-if/outside.hrx index 40dfd3ff08..0eead46131 100644 --- a/spec/non_conformant/errors/import/file/mixin/control-if/outside.hrx +++ b/spec/non_conformant/errors/import/file/mixin/control-if/outside.hrx @@ -9,9 +9,18 @@ <===> _include.scss <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/control-else.hrx b/spec/non_conformant/errors/import/miss/control-else.hrx index db2cfe5ae7..e4ad0b6a96 100644 --- a/spec/non_conformant/errors/import/miss/control-else.hrx +++ b/spec/non_conformant/errors/import/miss/control-else.hrx @@ -5,9 +5,18 @@ } <===> error +DEPRECATION WARNING on line 3, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -3 | @import '_include'; +3 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 3:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/control-if.hrx b/spec/non_conformant/errors/import/miss/control-if.hrx index dbce6cc2d4..8762566efc 100644 --- a/spec/non_conformant/errors/import/miss/control-if.hrx +++ b/spec/non_conformant/errors/import/miss/control-if.hrx @@ -4,9 +4,18 @@ } <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/loop/each.hrx b/spec/non_conformant/errors/import/miss/loop/each.hrx index 6b9b013f1c..ad85ca38b8 100644 --- a/spec/non_conformant/errors/import/miss/loop/each.hrx +++ b/spec/non_conformant/errors/import/miss/loop/each.hrx @@ -4,9 +4,18 @@ } <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/loop/for.hrx b/spec/non_conformant/errors/import/miss/loop/for.hrx index 7e5cd98ba4..00a5e9f30c 100644 --- a/spec/non_conformant/errors/import/miss/loop/for.hrx +++ b/spec/non_conformant/errors/import/miss/loop/for.hrx @@ -4,9 +4,18 @@ } <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/loop/while.hrx b/spec/non_conformant/errors/import/miss/loop/while.hrx index fb0a415d6e..48a3a0dee7 100644 --- a/spec/non_conformant/errors/import/miss/loop/while.hrx +++ b/spec/non_conformant/errors/import/miss/loop/while.hrx @@ -6,9 +6,18 @@ $count: 0; } <===> error +DEPRECATION WARNING on line 3, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -3 | @import '_include'; +3 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 3:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/mixin/control-else/inside.hrx b/spec/non_conformant/errors/import/miss/mixin/control-else/inside.hrx index 46fa86d16d..14436b11bd 100644 --- a/spec/non_conformant/errors/import/miss/mixin/control-else/inside.hrx +++ b/spec/non_conformant/errors/import/miss/mixin/control-else/inside.hrx @@ -10,9 +10,18 @@ foo { @include do_import(); } <===> error +DEPRECATION WARNING on line 4, column 13 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -4 | @import '_include'; +4 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 4:5 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/mixin/control-else/outside.hrx b/spec/non_conformant/errors/import/miss/mixin/control-else/outside.hrx index 1cdbca5e82..895366c938 100644 --- a/spec/non_conformant/errors/import/miss/mixin/control-else/outside.hrx +++ b/spec/non_conformant/errors/import/miss/mixin/control-else/outside.hrx @@ -9,9 +9,18 @@ } <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/mixin/control-if/inside.hrx b/spec/non_conformant/errors/import/miss/mixin/control-if/inside.hrx index ac05941f80..5be554a66d 100644 --- a/spec/non_conformant/errors/import/miss/mixin/control-if/inside.hrx +++ b/spec/non_conformant/errors/import/miss/mixin/control-if/inside.hrx @@ -9,9 +9,18 @@ foo { @include do_import(); } <===> error +DEPRECATION WARNING on line 3, column 13 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -3 | @import '_include'; +3 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 3:5 root stylesheet diff --git a/spec/non_conformant/errors/import/miss/mixin/control-if/outside.hrx b/spec/non_conformant/errors/import/miss/mixin/control-if/outside.hrx index b7bc256e26..6adb4c1054 100644 --- a/spec/non_conformant/errors/import/miss/mixin/control-if/outside.hrx +++ b/spec/non_conformant/errors/import/miss/mixin/control-if/outside.hrx @@ -7,9 +7,18 @@ @include do_import(); } <===> error +DEPRECATION WARNING on line 2, column 11 of input.scss: +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 '_include'; + | ^^^^^^^^^^ + ' + Error: This at-rule is not allowed here. , -2 | @import '_include'; +2 | @import '_include'; | ^^^^^^^^^^^^^^^^^^ ' input.scss 2:3 root stylesheet diff --git a/spec/non_conformant/sass/import/unquoted.hrx b/spec/non_conformant/sass/import/unquoted.hrx index 1b24b3d594..d8784bb9dc 100644 --- a/spec/non_conformant/sass/import/unquoted.hrx +++ b/spec/non_conformant/sass/import/unquoted.hrx @@ -15,3 +15,22 @@ a { d { e: f; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.sass: +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 unquoted, sub/unquoted + | ^^^^^^^^ + ' + +DEPRECATION WARNING on line 1, column 19 of input.sass: +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 unquoted, sub/unquoted + | ^^^^^^^^^^^^ + ' diff --git a/spec/non_conformant/sass/imported.hrx b/spec/non_conformant/sass/imported.hrx index 660017b95f..700002bbb5 100644 --- a/spec/non_conformant/sass/imported.hrx +++ b/spec/non_conformant/sass/imported.hrx @@ -14,3 +14,13 @@ div a { div li { color: green; } + +<===> warning +DEPRECATION WARNING on line 1, column 9 of input.scss: +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 "imported.sass"; + | ^^^^^^^^^^^^^^^ + ' diff --git a/spec/non_conformant/scss/function-names.hrx b/spec/non_conformant/scss/function-names.hrx index b080ca1b8e..a6fba6e073 100644 --- a/spec/non_conformant/scss/function-names.hrx +++ b/spec/non_conformant/scss/function-names.hrx @@ -11,3 +11,15 @@ div { color: unquote("hello"); color: "hello" unquote; } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use string.unquote instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +2 | color: unquote("hello"); + | ^^^^^^^^^^^^^^^^ + ' + input.scss 2:10 root stylesheet diff --git a/spec/non_conformant/scss/functions-and-mixins.hrx b/spec/non_conformant/scss/functions-and-mixins.hrx index 0e3afcb783..fa24b5e202 100644 --- a/spec/non_conformant/scss/functions-and-mixins.hrx +++ b/spec/non_conformant/scss/functions-and-mixins.hrx @@ -32,3 +32,15 @@ div span div { content: "hello"; width: 8; } + +<===> warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use list.length instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +22 | height: length(a b c d e); + | ^^^^^^^^^^^^^^^^^ + ' + input.scss 22:11 root stylesheet diff --git a/spec/values/calculation/abs.hrx b/spec/values/calculation/abs.hrx index df7170811d..907e298098 100644 --- a/spec/values/calculation/abs.hrx +++ b/spec/values/calculation/abs.hrx @@ -74,6 +74,18 @@ a { b: 3; } +<===> sass_script/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.abs instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: abs($number: -3)} + | ^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> percentage_warning/input.scss diff --git a/spec/values/calculation/calc/no_operator.hrx b/spec/values/calculation/calc/no_operator.hrx index 458ff83ca8..31bbbb813c 100644 --- a/spec/values/calculation/calc/no_operator.hrx +++ b/spec/values/calculation/calc/no_operator.hrx @@ -255,6 +255,18 @@ b { c: 1; } +<===> function/min/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.min instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | b {c: calc(min(1 2 3...))} + | ^^^^^^^^^^^^^ + ' + input.scss 1:12 root stylesheet + <===> ================================================================================ <===> function/max/input.scss @@ -265,6 +277,18 @@ b { c: 3; } +<===> function/max/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.max instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | b {c: calc(max(1 2 3...))} + | ^^^^^^^^^^^^^ + ' + input.scss 1:12 root stylesheet + <===> ================================================================================ <===> var/bare/input.scss diff --git a/spec/values/calculation/round/error.hrx b/spec/values/calculation/round/error.hrx index b1dd43131d..3906d43b73 100644 --- a/spec/values/calculation/round/error.hrx +++ b/spec/values/calculation/round/error.hrx @@ -34,6 +34,17 @@ Error: Only 3 arguments allowed, but 4 were passed. a {b: round($number: var(--c))} <===> one_argument/sass_script/variable_named_argument/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.round instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: round($number: var(--c))} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $number: var(--c) is not a number. , 1 | a {b: round($number: var(--c))} @@ -60,6 +71,17 @@ Error: Single argument 3px - var(--c) expected to be simplifiable. a {b: round("0")} <===> one_argument/type/error +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.round instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: round("0")} + | ^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + Error: $number: "0" is not a number. , 1 | a {b: round("0")} diff --git a/spec/values/calculation/round/one_argument.hrx b/spec/values/calculation/round/one_argument.hrx index 1d01cad7aa..099bfc6533 100644 --- a/spec/values/calculation/round/one_argument.hrx +++ b/spec/values/calculation/round/one_argument.hrx @@ -74,6 +74,18 @@ a { b: -3; } +<===> sass_script/warning +DEPRECATION WARNING: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. +Use math.round instead. + +More info and automated migrator: https://sass-lang.com/d/import + + , +1 | a {b: round($number: -3)} + | ^^^^^^^^^^^^^^^^^^ + ' + input.scss 1:7 root stylesheet + <===> ================================================================================ <===> math/slash_as_division/input.scss diff --git a/spec/values/colors/equality.hrx b/spec/values/colors/equality.hrx index 44f1e9b0c7..aac110f89e 100644 --- a/spec/values/colors/equality.hrx +++ b/spec/values/colors/equality.hrx @@ -133,7 +133,9 @@ a { <===> ================================================================================ <===> false/different_type/input.scss -a {b: red == unquote("red")} +@use "sass:string"; + +a {b: red == string.unquote("red")} <===> false/different_type/output.css a {