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

Update specs for the deprecation of feature-exists #1986

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions js-api-spec/deprecations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const activeDeprecations: {[key in keyof Deprecations]?: string} = {
'abs-percent': '1.65.0',
'fs-importer-cwd': '1.73.0',
'css-function-mixin': '1.76.0',
'feature-exists': '1.78.0',
};

/**
Expand Down
99 changes: 99 additions & 0 deletions spec/core_functions/meta/feature_exists.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ a {
b: true;
}

<===> global_variable_shadowing/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(global-variable-shadowing)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> extend_selector_pseudoclass/input.scss
Expand All @@ -22,6 +32,16 @@ a {
b: true;
}

<===> extend_selector_pseudoclass/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(extend-selector-pseudoclass)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> units_level_3/input.scss
Expand All @@ -32,6 +52,16 @@ a {
b: true;
}

<===> units_level_3/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(units-level-3)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> at_error/input.scss
Expand All @@ -42,6 +72,16 @@ a {
b: true;
}

<===> at_error/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(at-error)}
| ^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> custom_property/input.scss
Expand All @@ -52,6 +92,16 @@ a {
b: true;
}

<===> custom_property/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(custom-property)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> unknown/input.scss
Expand All @@ -62,6 +112,16 @@ a {
b: false;
}

<===> unknown/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(unknown)}
| ^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> dash_sensitive/input.scss
Expand All @@ -72,6 +132,16 @@ a {
b: false;
}

<===> dash_sensitive/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(at_error)}
| ^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> quote_insensitive/input.scss
Expand All @@ -82,6 +152,16 @@ a {
b: true;
}

<===> quote_insensitive/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists("at-error")}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> named/input.scss
Expand All @@ -92,12 +172,31 @@ a {
b: true;
}

<===> named/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists($feature: at-error)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
<===> error/type/input.scss
a {b: feature-exists(1)}

<===> error/type/error
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | a {b: feature-exists(1)}
| ^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

Error: $feature: 1 is not a string.
,
1 | a {b: feature-exists(1)}
Expand Down
10 changes: 10 additions & 0 deletions spec/core_functions/modules/meta.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ a {
b: true;
}

<===> feature_exists/warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
2 | a {b: meta.feature-exists(at-error)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet

<===>
================================================================================
<===> variable_exists/input.scss
Expand Down
10 changes: 10 additions & 0 deletions spec/libsass-closed-issues/issue_702.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
content: true;
content: false;
}

<===> warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
3 | content: feature-exists("foo");
| ^^^^^^^^^^^^^^^^^^^^^
'
input.scss 3:12 root stylesheet
10 changes: 10 additions & 0 deletions spec/libsass/at-error/feature-test.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
div {
feature: true;
}

<===> warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | @if feature-exists(at-error) {
| ^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:5 root stylesheet
10 changes: 10 additions & 0 deletions spec/libsass/units/feature-test.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
div {
feature: true;
}

<===> warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | @if feature-exists(units-level-3) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:5 root stylesheet
10 changes: 10 additions & 0 deletions spec/libsass/variable-scoping/feature-test.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@
div {
feature: true;
}

<===> warning
DEPRECATION WARNING: The feature-exists() function is deprecated.
More info: https://sass-lang.com/d/feature-exists

,
1 | @if feature-exists(global-variable-shadowing) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:5 root stylesheet
Loading