Skip to content

Commit 87d469c

Browse files
committed
fixes leafo#166, references leafo#156
1 parent cf49dc6 commit 87d469c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

scss.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ protected function applyArguments($argDef, $argValues) {
14901490
}
14911491
}
14921492

1493-
foreach ($args as $arg) {
1493+
for ($arg = end($args); $arg !== false; $arg = prev($args)) {
14941494
list($i, $name, $default, $isVariable) = $arg;
14951495
if ($isVariable) {
14961496
$val = array('list', ',', array());

tests/inputs/mixins.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,18 @@ div {
157157
@include logo(1em, $left: 4em, $bottom: 3em);
158158
}
159159

160+
@mixin prefixer($property, $value) {
161+
-webkit-#{$property}: $value;
162+
}
163+
164+
@mixin transform($property: none) {
165+
@include prefixer(transform, $property);
166+
}
167+
168+
div.parameter-name-scope {
169+
@include transform(translateX(50px));
170+
}
171+
160172
@mixin keyframes( $name )
161173
{
162174
@-webkit-keyframes $name {

tests/outputs/mixins.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ div.mixin-content-with-arg {
8282
bottom: 3em;
8383
left: 4em; }
8484

85+
div.parameter-name-scope {
86+
-webkit-transform: translateX(50px); }
87+
8588
@-webkit-keyframes change-color {
8689
0% {
8790
color: green; }

0 commit comments

Comments
 (0)