Skip to content

Commit

Permalink
Remove global-builtin deprecation for plain-CSS invert() (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
jathak authored Oct 17, 2024
1 parent 5a21617 commit 39ba133
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 118 deletions.
11 changes: 0 additions & 11 deletions spec/core_functions/color/invert/error.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -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%)}
Expand Down
47 changes: 0 additions & 47 deletions spec/core_functions/color/invert/global.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
48 changes: 0 additions & 48 deletions spec/core_functions/global/color/invert.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
12 changes: 0 additions & 12 deletions spec/libsass-closed-issues/issue_456.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 39ba133

Please sign in to comment.