-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation tests for custom-ident functions and mixins
- Loading branch information
Showing
4 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<===> escaped/input.scss | ||
// Function names can be defined and referred to using escapes, which are | ||
// normalized. | ||
@function f\6Fo-bar() {@return 1} | ||
|
||
a {b: foo-b\61r()} | ||
|
||
<===> escaped/output.css | ||
a { | ||
b: 1; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> custom_ident_name/input.scss | ||
@function --a() {@return 1} | ||
b {c: --a()} | ||
|
||
<===> custom_ident_name/warning | ||
DEPRECATION WARNING on line 1, column 11 of input.scss: | ||
Sass @function names beginning with -- are deprecated for forward-compatibility with plain CSS mixins. | ||
|
||
For details, see https://sass-lang.com/d/css-function-mixin | ||
, | ||
1 | @function --a() {@return 1} | ||
| ^^^ | ||
' | ||
|
||
<===> custom_ident_name/output.css | ||
b { | ||
c: 1; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<===> custom_ident_name/input.scss | ||
@mixin --a {b: c} | ||
d {@include --a} | ||
|
||
<===> custom_ident_name/warning | ||
DEPRECATION WARNING on line 1, column 8 of input.scss: | ||
Sass @mixin names beginning with -- are deprecated for forward-compatibility with plain CSS mixins. | ||
|
||
For details, see https://sass-lang.com/d/css-function-mixin | ||
, | ||
1 | @mixin --a {b: c} | ||
| ^^^ | ||
' | ||
|
||
<===> custom_ident_name/output.css | ||
d { | ||
b: c; | ||
} |