-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jurcovicovam
committed
Jun 28, 2014
1 parent
f98c552
commit 34df55f
Showing
5 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
...test/resources/compile-basic-features/detached-rulesets/detached-rulesets-as-argument.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
.default-mixin-argument { | ||
#basic-case .default-mixin-argument { | ||
default: default; | ||
} | ||
.custom-mixin-argument { | ||
#basic-case .custom-mixin-argument { | ||
custom: custom; | ||
} | ||
#sees-caller-scope .default-mixin-argument { | ||
from-default: sees; | ||
} | ||
#sees-caller-scope .custom-mixin-argument { | ||
from-custom: sees; | ||
} |
3 changes: 2 additions & 1 deletion
3
...test/resources/compile-basic-features/detached-rulesets/detached-rulesets-as-argument.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Warnings produced by compilation of testCase | ||
WARNING 1:20 This works, but is incompatible with less.js. Less.js does not allow detached rulesets as default mixin parameter values. | ||
WARNING 2:22 This works, but is incompatible with less.js. Less.js does not allow detached rulesets as default mixin parameter values. | ||
WARNING 16:22 This works, but is incompatible with less.js. Less.js does not allow detached rulesets as default mixin parameter values. |
40 changes: 31 additions & 9 deletions
40
...est/resources/compile-basic-features/detached-rulesets/detached-rulesets-as-argument.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,33 @@ | ||
.mixin(@parameter: {default: default;}) { | ||
@parameter(); | ||
#basic-case { | ||
.mixin(@parameter: {default: default;}) { | ||
@parameter(); | ||
} | ||
|
||
.default-mixin-argument { | ||
.mixin(); | ||
} | ||
|
||
.custom-mixin-argument { | ||
.mixin({custom: custom;}); | ||
} | ||
} | ||
|
||
.default-mixin-argument { | ||
.mixin(); | ||
} | ||
|
||
.custom-mixin-argument { | ||
.mixin({custom: custom;}); | ||
//sees-caller-scope | ||
#sees-caller-scope { | ||
.mixin(@parameter: {.inCaller();}) { | ||
@parameter(); | ||
} | ||
|
||
.default-mixin-argument { | ||
.inCaller() { | ||
from-default: sees; | ||
} | ||
.mixin(); | ||
} | ||
|
||
.custom-mixin-argument { | ||
.inCaller() { | ||
from-custom: sees; | ||
} | ||
.mixin({.inCaller();}); | ||
} | ||
} |