mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
and/or for mixin guards
This commit is contained in:
@@ -45,3 +45,12 @@
|
||||
.test5 {
|
||||
content: "false.";
|
||||
}
|
||||
.bool1 {
|
||||
content: true and true;
|
||||
content: true;
|
||||
content: false, true;
|
||||
content: false and true and true, true;
|
||||
content: false, true and true;
|
||||
content: false, false, true;
|
||||
content: false, true and true and true, false;
|
||||
}
|
||||
|
||||
@@ -72,3 +72,19 @@
|
||||
.test3 { .test(1) }
|
||||
.test4 { .test(boo) }
|
||||
.test5 { .test("true") }
|
||||
|
||||
// Boolean expressions
|
||||
|
||||
.bool () when (true) and (false) { content: true and false } // FALSE
|
||||
.bool () when (true) and (true) { content: true and true } // TRUE
|
||||
.bool () when (true) { content: true } // TRUE
|
||||
.bool () when (false) and (false) { content: true } // FALSE
|
||||
.bool () when (false), (true) { content: false, true } // TRUE
|
||||
.bool () when (false) and (true) and (true), (true) { content: false and true and true, true } // TRUE
|
||||
.bool () when (true) and (true) and (false), (false) { content: true and true and false, false } // FALSE
|
||||
.bool () when (false), (true) and (true) { content: false, true and true } // TRUE
|
||||
.bool () when (false), (false), (true) { content: false, false, true } // TRUE
|
||||
.bool () when (false), (false) and (true), (false) { content: false, false and true, false } // FALSE
|
||||
.bool () when (false), (true) and (true) and (true), (false) { content: false, true and true and true, false } // TRUE
|
||||
|
||||
.bool1 { .bool }
|
||||
|
||||
Reference in New Issue
Block a user