From 39ba133187119661fef110873582a8031ea9afe6 Mon Sep 17 00:00:00 2001 From: Jennifer Thakar Date: Thu, 17 Oct 2024 13:35:39 -0700 Subject: [PATCH] Remove global-builtin deprecation for plain-CSS `invert()` (#2031) --- spec/core_functions/color/invert/error.hrx | 11 ----- spec/core_functions/color/invert/global.hrx | 47 -------------------- spec/core_functions/global/color/invert.hrx | 48 --------------------- spec/libsass-closed-issues/issue_456.hrx | 12 ------ 4 files changed, 118 deletions(-) diff --git a/spec/core_functions/color/invert/error.hrx b/spec/core_functions/color/invert/error.hrx index 8b41fd726e..891e79daa9 100644 --- a/spec/core_functions/color/invert/error.hrx +++ b/spec/core_functions/color/invert/error.hrx @@ -38,17 +38,6 @@ 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%)} diff --git a/spec/core_functions/color/invert/global.hrx b/spec/core_functions/color/invert/global.hrx index 46f7ecf46f..82c3c9c1be 100644 --- a/spec/core_functions/color/invert/global.hrx +++ b/spec/core_functions/color/invert/global.hrx @@ -50,18 +50,6 @@ 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 @@ -72,18 +60,6 @@ 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 @@ -94,18 +70,6 @@ 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 @@ -127,14 +91,3 @@ More info and automated migrator: https://sass-lang.com/d/import | ^^^^^^^^^^^^^^^^^^ ' 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/global/color/invert.hrx b/spec/core_functions/global/color/invert.hrx index e04a028e59..4f3b7e2f8b 100644 --- a/spec/core_functions/global/color/invert.hrx +++ b/spec/core_functions/global/color/invert.hrx @@ -28,18 +28,6 @@ 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 @@ -50,18 +38,6 @@ 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 @@ -72,18 +48,6 @@ 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 @@ -94,15 +58,3 @@ 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/libsass-closed-issues/issue_456.hrx b/spec/libsass-closed-issues/issue_456.hrx index 84bca937d6..0ddfe4880b 100644 --- a/spec/libsass-closed-issues/issue_456.hrx +++ b/spec/libsass-closed-issues/issue_456.hrx @@ -7,15 +7,3 @@ 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