mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Merge https://github.com/less/less.js into nested-directives-in-directives-v2-1691-2104
This commit is contained in:
@@ -50,10 +50,16 @@
|
||||
uri: data-uri('../../data/data-uri-fail.png');
|
||||
}
|
||||
#svg-functions {
|
||||
background-image: svg-gradient(to bottom, black, white);
|
||||
@colorlist1: black, white;
|
||||
background-image: svg-gradient(to bottom, @colorlist1);
|
||||
background-image: svg-gradient(to bottom, black white);
|
||||
background-image: svg-gradient(to bottom, black, orange 3%, white);
|
||||
@colorlist2: black, orange 3%, white;
|
||||
background-image: svg-gradient(to bottom, @colorlist2);
|
||||
@green_5: green 5%;
|
||||
@orange_percentage: 3%;
|
||||
@orange_color: orange;
|
||||
@colorlist3: (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%;
|
||||
background-image: svg-gradient(to bottom,@colorlist3);
|
||||
background-image: svg-gradient(to bottom, (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] in {path}svg-gradient2.less on line 2, column 6:
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient2.less on line 2, column 6:
|
||||
1 .a {
|
||||
2 a: svg-gradient(to bottom, black, orange, 45%, white);
|
||||
3 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] in {path}svg-gradient3.less on line 2, column 6:
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient3.less on line 2, column 6:
|
||||
1 .a {
|
||||
2 a: svg-gradient(black, orange);
|
||||
3 }
|
||||
|
||||
4
test/less/errors/svg-gradient4.less
Normal file
4
test/less/errors/svg-gradient4.less
Normal file
@@ -0,0 +1,4 @@
|
||||
.a {
|
||||
a: svg-gradient(horizontal, @colors);
|
||||
}
|
||||
@colors: black, white;
|
||||
4
test/less/errors/svg-gradient4.txt
Normal file
4
test/less/errors/svg-gradient4.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient4.less on line 2, column 6:
|
||||
1 .a {
|
||||
2 a: svg-gradient(horizontal, @colors);
|
||||
3 }
|
||||
4
test/less/errors/svg-gradient5.less
Normal file
4
test/less/errors/svg-gradient5.less
Normal file
@@ -0,0 +1,4 @@
|
||||
.a {
|
||||
a: svg-gradient(to bottom, @colors);
|
||||
}
|
||||
@colors: black, orange, 45%, white;
|
||||
4
test/less/errors/svg-gradient5.txt
Normal file
4
test/less/errors/svg-gradient5.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient5.less on line 2, column 6:
|
||||
1 .a {
|
||||
2 a: svg-gradient(to bottom, @colors);
|
||||
3 }
|
||||
4
test/less/errors/svg-gradient6.less
Normal file
4
test/less/errors/svg-gradient6.less
Normal file
@@ -0,0 +1,4 @@
|
||||
.a {
|
||||
a: svg-gradient(black, @colors);
|
||||
}
|
||||
@colors: orange;
|
||||
4
test/less/errors/svg-gradient6.txt
Normal file
4
test/less/errors/svg-gradient6.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient6.less on line 2, column 6:
|
||||
1 .a {
|
||||
2 a: svg-gradient(black, @colors);
|
||||
3 }
|
||||
Reference in New Issue
Block a user