Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global-builtin deprecation for plain-CSS invert() #2031

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading