mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Fix mixin calls being recognised as mixin definitions when arguments contain spaces and interpolated strings. Fixes #901
This commit is contained in:
@@ -102,3 +102,7 @@ legend + h3 {
|
||||
h3 + * {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.error {
|
||||
background-image: "/a.png";
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
@@ -81,4 +81,13 @@
|
||||
}
|
||||
h1 { .margin_between(25px, 10px); }
|
||||
h2 { .margin_between(20px, 8px); }
|
||||
h3 { .margin_between(15px, 5px); }
|
||||
h3 { .margin_between(15px, 5px); }
|
||||
|
||||
.mixin_def(@url, @position){
|
||||
background-image: @url;
|
||||
background-position: @position;
|
||||
}
|
||||
.error{
|
||||
@s: "/";
|
||||
.mixin_def( "@{s}a.png", center center);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user