Merge https://github.com/less/less.js into nested-directives-in-directives-v2-1691-2104

This commit is contained in:
jurcovicovam
2015-02-26 09:39:18 +01:00
12 changed files with 54 additions and 16 deletions

View File

@@ -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%);
}

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -0,0 +1,4 @@
.a {
a: svg-gradient(horizontal, @colors);
}
@colors: black, white;

View 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 }

View File

@@ -0,0 +1,4 @@
.a {
a: svg-gradient(to bottom, @colors);
}
@colors: black, orange, 45%, white;

View 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 }

View File

@@ -0,0 +1,4 @@
.a {
a: svg-gradient(black, @colors);
}
@colors: orange;

View 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 }