Skip to content

Commit 99c3cb4

Browse files
committed
(test) test for semi-variadic mixin
1 parent 229856d commit 99c3cb4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/css/mixins-args.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ body {
6565
border: 0px;
6666
width: 0px;
6767
}
68+
.arguments4 {
69+
border: 4 2;
70+
width: 4;
71+
}
6872
.edge-case {
6973
border: "{";
7074
width: "{";

test/less/mixins-args.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ body {
121121
.mixin-arguments;
122122
}
123123

124+
.mixin-arguments2 (@width, ...) {
125+
border: @arguments;
126+
width: @width;
127+
}
128+
.arguments4 {
129+
.mixin-arguments2(4, 2);
130+
}
131+
124132
// Edge cases
125133

126134
.edge-case {

0 commit comments

Comments
 (0)