mirror of
https://github.com/less/less.js.git
synced 2026-02-19 03:04:38 -05:00
improve condition parser, support true/false values
This commit is contained in:
@@ -30,3 +30,9 @@
|
||||
.default1 {
|
||||
content: default;
|
||||
}
|
||||
.test1 {
|
||||
content: "true.";
|
||||
}
|
||||
.test2 {
|
||||
content: "false.";
|
||||
}
|
||||
|
||||
@@ -58,3 +58,14 @@
|
||||
content: default;
|
||||
}
|
||||
.default1 { .default }
|
||||
|
||||
// true & false keywords
|
||||
.test (@a) when (@a) {
|
||||
content: "true.";
|
||||
}
|
||||
.test (@a) when (!@a) {
|
||||
content: "false.";
|
||||
}
|
||||
|
||||
.test1 { .test(true) }
|
||||
.test2 { .test(false) }
|
||||
|
||||
Reference in New Issue
Block a user