Skip to content

Commit 506e335

Browse files
committed
Passing a string to call is deprecated in 3.5.
1 parent bc48e5e commit 506e335

File tree

240 files changed

+1247
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+1247
-0
lines changed

spec/basic/60_call-3.5/error

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
2+
in Sass 4.0. Use call(function-reference(foobar)) instead.
3+
4+
DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
5+
in Sass 4.0. Use call(function-reference(min)) instead.
6+
7+
DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
8+
in Sass 4.0. Use call(function-reference(min)) instead.
9+
10+
DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
11+
in Sass 4.0. Use call(function-reference(max)) instead.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
body {
2+
display: foobar;
3+
display: 1;
4+
display: 5;
5+
display: 10;
6+
color: "assets/fudge/blah"; }

spec/basic/60_call-3.5/input.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@function foobar() {
2+
@return foobar;
3+
}
4+
5+
@function fudge($str) {
6+
@return "assets/fudge/" + $str;
7+
}
8+
9+
10+
body {
11+
display: call(foobar);
12+
display: call(min, 1,3,5,7);
13+
display: call(min, 5);
14+
display: call(max, 10,3,5,7);
15+
color: fudge("blah");
16+
}

spec/basic/60_call-3.5/options.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
:start_version: '3.5'

spec/basic/60_call/options.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
:end_version: '3.4'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
2+
in Sass 4.0. Use call(function-reference(lighten)) instead.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
foo {
2+
bar: #ff3333; }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$name: "lighten";
2+
$args: ("color": #ff0000, "amount": 10%);
3+
foo {
4+
bar: call($name, $args...);
5+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
:start_version: '3.5'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
:end_version: '3.4'

0 commit comments

Comments
 (0)